call_http Module

Functions

call_http

Get task used to schedule a durable HTTP call to the specified endpoint.

call_http(state: List[azure.durable_functions.models.history.HistoryEvent.HistoryEvent], method: str, uri: str, content: Optional[str] = None, headers: Optional[Dict[str, str]] = None, token_source: Optional[azure.durable_functions.models.TokenSource.TokenSource] = None) -> azure.durable_functions.models.Task.Task

Parameters

state
<xref:List>[HistoryEvent]
Required

The list of events that have been processed to determine the state of the task to be scheduled

method
str
Required

The HTTP request method.

uri
str
Required

The HTTP request uri.

content
str
default value: None

The HTTP request content.

headers
<xref:Dict>[str, str]
default value: None

The HTTP request headers.

token_source
TokenSource
default value: None

The source of OAuth token to add to the request.

Returns

The durable HTTP request to schedule.

Return type