Interface: MockResponseSpec
Properties
body?
optionalbody?:string
Response body (a string; use jsonResponse/textResponse for shorthands).
contentType?
optionalcontentType?:string
Content-Type header to set.
headers?
optionalheaders?:Record<string,string>
Extra response headers.
status?
optionalstatus?:number
HTTP status code to return (default 200).