HttpRequest Class

An HTTP request object.

Inheritance
azure.functions._abc.HttpRequest
HttpRequest

Constructor

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

Parameters

method
str
Required

HTTP request method name.

url
str
Required

HTTP URL.

headers
dict
Required

An optional mapping containing HTTP request headers.

params
dict
Required

An optional mapping containing HTTP request params.

route_params
dict
Required

An optional mapping containing HTTP request route params.

body
bytes
Required

HTTP request body.

Methods

get_body
get_json

get_body

get_body() -> bytes

get_json

get_json() -> typing.Any