IrohHttpNode
Defined in: src/client/httpi.ts:28
Minimal typed surface shared by native iroh-http nodes and test adapters.
Methods
Section titled “Methods”close()
Section titled “close()”close(options?): Promise<void>;Defined in: src/client/httpi.ts:32
Close this Iroh endpoint and release its native resources.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
{ force?: boolean; } |
options.force? |
boolean |
Returns
Section titled “Returns”Promise<void>
fetch()
Section titled “fetch()”fetch(input, init?): Promise<Response>;Defined in: src/client/httpi.ts:30
Execute one Fetch-compatible request over iroh-http/2.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
string | URL |
init? |
IrohHttpFetchInit |
Returns
Section titled “Returns”Promise<Response>
