Skip to main content

Interface: RecordedRequest

Defined in: src/index.ts:390

A request from WireMock's journal; fields not modelled here are kept as-is.

See​

Recorded requests

Indexable​

[field: string]: unknown

Properties​

PropertyModifierTypeDescriptionDefined in
absoluteUrl?readonlystringScheme, host, port, path and query string, e.g. "http://localhost:32768/cards?page=1".src/index.ts:396
body?readonlystringThe body as text; "" for requests without one.src/index.ts:404
headers?readonlyReadonly<Record<string, unknown>>Header name → value, e.g. { "Content-Type": "application/json" }.src/index.ts:400
id?readonlystringThe journal entry's id, where WireMock reports one.src/index.ts:392
loggedDate?readonlynumberEpoch milliseconds.src/index.ts:406
methodreadonlystringE.g. "GET".src/index.ts:398
queryParams?readonlyReadonly<Record<string, unknown>>Query parameter name → { key, values }, e.g. { page: { key: "page", values: ["1"] } }.src/index.ts:402
urlreadonlystringPath and query string, e.g. "/cards?page=1".src/index.ts:394