Name
StaticResponseHandler — create static response in HTTP exchange
Usage
{
"name": string,
"type": "StaticResponseHandler",
"config": {
"status": number,
"reason": string,
"version": string,
"headers": {
name: [ expression, ... ], ...
},
"entity": string
}
}Properties
"status": number, required-
The response status code (for example, 200).
"reason": string, optional-
The response status reason (for example,
"OK"). "version": string, optional-
Protocol version. Default:
"HTTP/1.1". "headers": array of objects, required-
Header fields to set in the response. The
namespecifies the header name, with an associated array of expressions to evaluate as values. "entity": string, optional-
The message entity to write in the response. Conforms to the set
Content-Typeheader and setsContent-Length.

