headers


headersHeadersRead-only

Returns the HTTP header fields used in a call to an HTTP function.

The headers property returns an object of key:value pairs where the key is the header field name and the value is the header field value.

Headers are returned in lowercase, regardless of how they were sent by the function caller.

Get the headers from a call to an HTTP function
JavaScript
// In http-functions.js export function use_myFunction(request) { let headers = request.headers; // {"content-type": "application/json"} }
Did this help?