-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Description
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
Labels
No labels