انتقل إلى المحتوى الرئيسي

Interface: HttpRequest

Defined in: packages/identity/src/transport.ts:18

One call to the provider's management API, as an adapter builds it. The adapter has already chosen the content type and authorisation, so the transport adds nothing but content-length.

Properties​

body?​

readonly optional body?: string

Defined in: packages/identity/src/transport.ts:26

Already serialised, usually as JSON; absent for a call with no body.


headers​

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

Defined in: packages/identity/src/transport.ts:24

Sent as given, so they carry the bearer token or basic credential.


method​

readonly method: string

Defined in: packages/identity/src/transport.ts:20

An HTTP method in upper case, such as GET or PATCH.


url​

readonly url: string

Defined in: packages/identity/src/transport.ts:22

Absolute, scheme included; the scheme picks node:http or node:https.