Documents / @faasjs/dev / JsonHandlerOptions
Type Alias: JsonHandlerOptions
JsonHandlerOptions =
object
Options for HTTP-style JSON API test calls.
Properties
cookie?
optionalcookie?:object
Cookie key-value pairs preloaded into the request.
Index Signature
[key: string]: any
headers?
optionalheaders?:object
Headers merged into the JSON request.
Index Signature
[key: string]: any
path?
optionalpath?:string
URL pathname used for event.path; defaults to the path inferred from the API filename.
session?
optionalsession?:object
Session key-value pairs encoded into the request cookie before invocation.
Index Signature
[key: string]: any