The attributes associated with an HTTP request.
String
)
The HTTP request body as a plain string. Use this field when the body isn't in JSON format.
[HttpRequestHeader!]!
)
Required
The HTTP headers.
JSON
)
The HTTP request body as a JSON object.
Use this field when the body's in JSON format, to reduce function instruction consumption
and to ensure the body's formatted in logs.
Don't use this field together with the body
field. If both are provided, then the body
field
will take precedence.
If this field is specified and no Content-Type
header is included, then the header will
automatically be set to application/json
.
HttpRequestMethod!
)
Required
The HTTP method.
HttpRequestPolicy!
)
Required
Policy attached to the HTTP request.
URL!
)
Required
The HTTP url (eg.: https://example.com). The scheme needs to be HTTPS.