[response.headers.set]
response.headers.set is a slot in the response namespace, in Hyperlambda, the language of Magic Cloud. Sets one or more response headers from key/value child nodes.
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | string | yes | Response header name and value. Can be repeated. |
JSON declaration
This is the complete declaration of response.headers.set, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "response.headers.set",
"description": "Sets one or more response headers from key/value child nodes",
"signature": {
"children": {
"*": {
"type": "string",
"kind": "http-response-header-value",
"description": "Response header name and value",
"required": true,
"mode": "ValueOrExpression",
"cardinality": "OneOrMore",
"role": "DynamicMap",
"projection": "Value"
}
}
}
}
← response.cookies.set |
all response.* slots |
response.status.set → |