Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GenericStaticResponse<Fixture, Body>

Type parameters

  • Fixture

  • Body

Hierarchy

  • GenericStaticResponse

Index

Properties

Optional body

body: Body

Serve a static string/JSON object as the response body.

Optional fixture

fixture: Fixture

Serve a fixture as the response body.

Optional forceNetworkError

forceNetworkError: boolean

If 'forceNetworkError' is truthy, Cypress will destroy the browser connection and send no response. Useful for simulating a server that is not reachable. Must not be set in combination with other options.

Optional headers

headers: {}

HTTP headers to accompany the response.

default

{}

Type declaration

  • [key: string]: string

Optional statusCode

statusCode: number

The HTTP status code to send.

default

200

Optional throttleKbps

throttleKbps: number

Kilobits per second to send 'body'.

Generated using TypeDoc