Skip to content

nooschain v0.1.0


nooschain / net/http-json-client / requestJson

Function: requestJson()

requestJson<T>(url, options?): Promise<HttpJsonResponse<T>>

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

Sends a JSON request and parses the JSON response.

Non-2xx responses resolve with ok=false so callers can attach peer scoring or retry semantics. Network errors, timeouts, and invalid JSON reject.

Type Parameters

T

T = unknown

Parameters

url

string

options?

HttpJsonRequestOptions = {}

Returns

Promise<HttpJsonResponse<T>>

Audience-first NOOSChain documentation.