Azure Functions HTTP output bindings
Use the HTTP output binding to respond to the HTTP request sender (HTTP trigger). This binding requires an HTTP trigger and allows you to customize the response associated with the trigger's request.
The default return value for an HTTP-triggered function is:
HTTP 204 No Contentwith an empty body in Functions 2.x and higher
HTTP 200 OKwith an empty body in Functions 1.x
In the Java functions runtime library, use the HttpOutput annotation to define an output variable other than the default variable returned by the function. This annotation supports the following settings:
The following table explains the binding configuration properties that you set in the function.json file.
|type||Must be set to
|direction||Must be set to
|name||The variable name used in function code for the response, or
To send an HTTP response, use the language-standard response patterns.
The response type depends on the C# mode:
For example responses, see the trigger examples.