HttpFunctionOptions interface
- Extends
-
HttpTriggerOptions,Partial<FunctionOptions>
Properties
| handler | The code that will be executed when your function is triggered |
| return | Configuration for the optional primary output of the function. If not set, this will default to a standard http response output This is the main output that you should set as the return value of the function handler during invocation |
| trigger | Configuration for the primary input to the function, aka the reason it will be triggered This is the only input that is passed as an argument to the function handler during invocation |
Inherited Properties
| auth |
The function HTTP authorization level Defaults to 'anonymous' if not specified |
| extra |
Configuration for an optional set of secondary inputs
During invocation, get these values with |
| extra |
Configuration for an optional set of secondary outputs
During invocation, set these values with |
| methods | An array of the http methods for this http input Defaults to ["get", "post"] if not specified |
| route | The route for this http input. If not specified, the function name will be used |
Property Details
handler
The code that will be executed when your function is triggered
handler: HttpHandler
Property Value
return
Configuration for the optional primary output of the function. If not set, this will default to a standard http response output This is the main output that you should set as the return value of the function handler during invocation
return?: FunctionOutput
Property Value
trigger
Configuration for the primary input to the function, aka the reason it will be triggered This is the only input that is passed as an argument to the function handler during invocation
trigger?: HttpTrigger
Property Value
Inherited Property Details
authLevel
The function HTTP authorization level Defaults to 'anonymous' if not specified
authLevel?: "function" | "anonymous" | "admin"
Property Value
"function" | "anonymous" | "admin"
Inherited From HttpTriggerOptions.authLevel
extraInputs
Configuration for an optional set of secondary inputs
During invocation, get these values with context.extraInputs.get()
extraInputs?: FunctionInput[]
Property Value
Inherited From Partial.extraInputs
extraOutputs
Configuration for an optional set of secondary outputs
During invocation, set these values with context.extraOutputs.set()
extraOutputs?: FunctionOutput[]
Property Value
Inherited From Partial.extraOutputs
methods
An array of the http methods for this http input Defaults to ["get", "post"] if not specified
methods?: HttpMethod[]
Property Value
Inherited From HttpTriggerOptions.methods
route
The route for this http input. If not specified, the function name will be used
route?: string
Property Value
string
Inherited From HttpTriggerOptions.route