Documents / @faasjs/core / Response
Type Alias: Response
Response =
object
Serializable HTTP response shape produced by FaasJS HTTP handlers.
Properties
body?
optionalbody?:string|ReadableStream
Plain string body or stream payload.
headers?
optionalheaders?:object
Response headers keyed by header name.
Index Signature
[key: string]: string
message?
optionalmessage?:string
Optional response message.
statusCode?
optionalstatusCode?:number
HTTP status code to send.