HttpRequest class

Definition

An HTTP request object.

HttpRequest(method: str, url: str, *, headers: typing.Union[typing.Mapping[str, str], NoneType] = None, params: typing.Union[typing.Mapping[str, str], NoneType] = None, route_params: typing.Union[typing.Mapping[str, str], NoneType] = None, body: bytes) -> None
Inheritance
azure.functions._abc.HttpRequest
HttpRequest

Parameters

method
str

HTTP request method name.

url
str

HTTP URL.

headers
dict

An optional mapping containing HTTP request headers.

params
dict

An optional mapping containing HTTP request params.

route_params
dict

An optional mapping containing HTTP request route params.

body
bytes

HTTP request body.

Methods

get_body() -> bytes
get_json() -> typing.Any

get_body() -> bytes

get_body() -> bytes

get_json() -> typing.Any

get_json() -> typing.Any