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?
Returns
Promise<HttpJsonResponse<T>>