Skip to content

nooschain v0.1.0


nooschain / net/http-json-client / HttpJsonRequestOptions

Interface: HttpJsonRequestOptions

Defined in: net/http-json-client.ts:16

Options for one JSON HTTP request.

Properties

body?

optional body?: unknown

Defined in: net/http-json-client.ts:22

JSON-serializable request body.


headers?

optional headers?: Record<string, string>

Defined in: net/http-json-client.ts:20

Additional headers, such as node-auth signed headers.


method?

optional method?: "GET" | "POST"

Defined in: net/http-json-client.ts:18

HTTP method. Defaults to GET unless a body is supplied, then POST.


timeoutMs?

optional timeoutMs?: number

Defined in: net/http-json-client.ts:24

Request timeout in milliseconds. Defaults to 10 seconds.


tls?

optional tls?: NoosTlsConfig

Defined in: net/http-json-client.ts:26

TLS options for HTTPS requests. Defaults to NOOS_* env config.

Audience-first NOOSChain documentation.