Skip to content

HTTP Triggers and Bindings #4

@asavaritayal

Description

@asavaritayal

HTTP webhook triggers and HTTP output bindings will use request and response objects to represent the HTTP messaging.

Request Object

The request object has the following attributes.

Attribute Data Type Description
method str HTTP method of the request
url str Url of the request
headers dict HTTP headers sent with the request
data dict Form data parameters
params dict Query string parameters
body bytes Raw HTTP request body

Response Object

The response object has the following attributes.

Attribute Data Type Description
headers dict Response headers
status_code int HTTP response status code
content str, bytes, dict Contents of the response

Similar to any other binding, the HTTP request and response objects can be accessed using the name attribute from function.json.

Example - https://github.com/Azure/azure-functions-python-worker/tree/master/Samples/HttpTrigger1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions