You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-custom-handlers.md
+58-3Lines changed: 58 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,61 @@ When used with a custom handler, the *function.json* contents are no different f
113
113
114
114
### Request payload
115
115
116
-
todo
116
+
The request payload for pure HTTP functions is the raw HTTP request payload. Pure HTTP functions are defined as functions with no input or output bindings, that return an HTTP response.
117
+
118
+
Any other type of function that includes either input, output bindings or is triggered via an event source other than HTTP have a custom request payload.
119
+
120
+
The following code represents a sample request payload. The payload includes a JSON payload with two members: `Data` and `Metadata`.
121
+
122
+
The `Data` member includes keys that match input and trigger names as defined in the bindings array in the *function.json* file.
123
+
124
+
The `Metadata` member includes [metadata generated from the event source](./functions-bindings-expressions-patterns.md#trigger-metadata).
125
+
126
+
Given the bindings defined in the following *function.json* file:
127
+
128
+
```json
129
+
{
130
+
"bindings": [
131
+
{
132
+
"name": "myQueueItem",
133
+
"type": "queueTrigger",
134
+
"direction": "in",
135
+
"queueName": "messages-incoming",
136
+
"connection": "AzureWebJobsStorage"
137
+
},
138
+
{
139
+
"name": "$return",
140
+
"type": "queue",
141
+
"direction": "out",
142
+
"queueName": "messages-outgoing",
143
+
"connection": "AzureWebJobsStorage"
144
+
}
145
+
]
146
+
}
147
+
```
148
+
149
+
A request payload similar to this example is returned:
@@ -385,8 +439,9 @@ A custom handler can be deployed to any Azure Functions hosting option. If your
385
439
386
440
## Restrictions
387
441
388
-
Custom handlers are not supported in Linux consumption plans.
442
+
- Custom handlers are not supported in Linux consumption plans.
443
+
- Web servers needs to start within 60 seconds
389
444
390
445
## Samples
391
446
392
-
Refer to the custom handler samples GitHub repo for examples of how to implement functions in a variety of different languages.
447
+
Refer to the [custom handler samples GitHub repo](https://github.com/pragnagopa/functions-http-worker) for examples of how to implement functions in a variety of different languages.
0 commit comments