Skip to content

@graphty/graphty-element / index / Recording

Interface: Recording ​

Defined in: graph-io/dist/src/sources/testing.d.ts:10

One recorded exchange. Experimental.

Properties ​

body? ​

readonly optional body?: unknown

Defined in: graph-io/dist/src/sources/testing.d.ts:28

The response body: text, or a value sent as JSON.


credential? ​

readonly optional credential?: boolean

Defined in: graph-io/dist/src/sources/testing.d.ts:22

true: the request must carry a credential; false: it must not. Absent: either. A credential is an Authorization header, or a header or query parameter named in secretHeaders / secretQuery; its value is never compared.


headers? ​

readonly optional headers?: Readonly<Record<string, string>>

Defined in: graph-io/dist/src/sources/testing.d.ts:26

The response headers.


method? ​

readonly optional method?: string

Defined in: graph-io/dist/src/sources/testing.d.ts:12

The request method.

Default Value ​

ts
"GET"

requestBody? ​

readonly optional requestBody?: string

Defined in: graph-io/dist/src/sources/testing.d.ts:16

The request body, when it must match (JSON bodies compare as JSON).


status? ​

readonly optional status?: number

Defined in: graph-io/dist/src/sources/testing.d.ts:24

The response status.

Default Value ​

ts
200

url ​

readonly url: string

Defined in: graph-io/dist/src/sources/testing.d.ts:14

The request URL. Query parameters match in any order.