The attributes associated with an HTTP response.
String
)
The HTTP response body as a plain string. Use this field when the body is not in JSON format.
HttpResponseHeader
)
An HTTP header.
Argument | Description |
---|---|
name
(
String!
)
required
|
A case-insensitive header name. |
JSON
)
The HTTP response body parsed as JSON.
If the body is valid JSON, it will be parsed and returned as a JSON object.
If parsing fails, then raw body is returned as a string.
Use this field when you expect the response to be JSON, or when you're dealing with mixed response types, meaning both JSON and non-JSON.
Using this field reduces function instruction consumption and ensures that the data is formatted in logs.
To prevent increasing the function target input size unnecessarily, avoid querying
both body
and jsonBody
simultaneously.
Int!
)
The HTTP status code.
[HttpResponseHeader!]!
)
deprecated
The HTTP headers.
Use header
instead.