Skip to content

Commit ae1f4b5

Browse files
committed
docs: clarify that call_http content accepts dict
1 parent 4ab004b commit ae1f4b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

azure/durable_functions/models/DurableOrchestrationContext.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,9 @@ def call_http(self, method: str, uri: str, content: Optional[str] = None,
246246
The HTTP request method.
247247
uri: str
248248
The HTTP request uri.
249-
content: Optional[str]
250-
The HTTP request content.
249+
content: str or dict, optional
250+
The HTTP request content. Can be a string or a JSON-serializable dictionary.
251+
Note: Although the type hint says 'str', a dictionary is accepted and will be serialized to JSON.
251252
headers: Optional[Dict[str, str]]
252253
The HTTP request headers.
253254
token_source: TokenSource

0 commit comments

Comments
 (0)