NodeHttpClient.ts overview
Since v1.0.0
Exports Grouped by Category
agent
HttpAgent
Signature
declare const HttpAgent: Context.Tag<HttpAgent, HttpAgent>
Since v1.0.0
HttpAgent (interface)
Signature
export interface HttpAgent {
readonly [HttpAgentTypeId]: typeof HttpAgentTypeId
readonly http: Http.Agent
readonly https: Https.Agent
}
Since v1.0.0
HttpAgentTypeId
Signature
declare const HttpAgentTypeId: unique symbol
Since v1.0.0
HttpAgentTypeId (type alias)
Signature
type HttpAgentTypeId = typeof HttpAgentTypeId
Since v1.0.0
agentLayer
Signature
declare const agentLayer: Layer.Layer<HttpAgent>
Since v1.0.0
makeAgent
Signature
declare const makeAgent: (options?: Https.AgentOptions) => Effect.Effect<HttpAgent, never, Scope.Scope>
Since v1.0.0
makeAgentLayer
Signature
declare const makeAgentLayer: (options?: Https.AgentOptions) => Layer.Layer<HttpAgent>
Since v1.0.0
constructors
make
Signature
declare const make: Effect.Effect<Client.HttpClient, never, HttpAgent>
Since v1.0.0
makeUndici
Signature
declare const makeUndici: (dispatcher: Undici.Dispatcher) => Client.HttpClient
Since v1.0.0
layers
layer
Signature
declare const layer: Layer.Layer<Client.HttpClient>
Since v1.0.0
layerUndici
Signature
declare const layerUndici: Layer.Layer<Client.HttpClient>
Since v1.0.0
layerUndiciWithoutDispatcher
Signature
declare const layerUndiciWithoutDispatcher: Layer.Layer<Client.HttpClient, never, Dispatcher>
Since v1.0.0
layerWithoutAgent
Signature
declare const layerWithoutAgent: Layer.Layer<Client.HttpClient, never, HttpAgent>
Since v1.0.0
undici
Dispatcher
Signature
declare const Dispatcher: Context.Tag<Dispatcher, Undici.Dispatcher>
Since v1.0.0
Dispatcher (interface)
Signature
export interface Dispatcher {
readonly _: unique symbol
}
Since v1.0.0
UndiciRequestOptions (class)
Signature
declare class UndiciRequestOptions
Since v1.0.0
dispatcherLayer
Signature
declare const dispatcherLayer: Layer.Layer<Dispatcher>
Since v1.0.0
dispatcherLayerGlobal
Signature
declare const dispatcherLayerGlobal: Layer.Layer<Dispatcher>
Since v1.0.0
makeDispatcher
Signature
declare const makeDispatcher: Effect.Effect<Undici.Dispatcher, never, Scope.Scope>
Since v1.0.0