Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interface: MockResponseSpec

Properties

body?

optional body?: string

Response body (a string; use jsonResponse/textResponse for shorthands).


contentType?

optional contentType?: string

Content-Type header to set.


headers?

optional headers?: Record<string, string>

Extra response headers.


status?

optional status?: number

HTTP status code to return (default 200).