Skip to main content Link Search Menu Expand Document (external link)

NodeHttpClient.ts overview

Since v1.0.0


Exports Grouped by Category


agent

HttpAgent

Signature

declare const HttpAgent: Context.Tag<HttpAgent, HttpAgent>

Source

Since v1.0.0

HttpAgent (interface)

Signature

export interface HttpAgent {
  readonly [HttpAgentTypeId]: typeof HttpAgentTypeId
  readonly http: Http.Agent
  readonly https: Https.Agent
}

Source

Since v1.0.0

HttpAgentTypeId

Signature

declare const HttpAgentTypeId: unique symbol

Source

Since v1.0.0

HttpAgentTypeId (type alias)

Signature

type HttpAgentTypeId = typeof HttpAgentTypeId

Source

Since v1.0.0

agentLayer

Signature

declare const agentLayer: Layer.Layer<HttpAgent>

Source

Since v1.0.0

makeAgent

Signature

declare const makeAgent: (options?: Https.AgentOptions) => Effect.Effect<HttpAgent, never, Scope.Scope>

Source

Since v1.0.0

makeAgentLayer

Signature

declare const makeAgentLayer: (options?: Https.AgentOptions) => Layer.Layer<HttpAgent>

Source

Since v1.0.0

constructors

make

Signature

declare const make: Effect.Effect<Client.HttpClient, never, HttpAgent>

Source

Since v1.0.0

makeUndici

Signature

declare const makeUndici: (dispatcher: Undici.Dispatcher) => Client.HttpClient

Source

Since v1.0.0

layers

layer

Signature

declare const layer: Layer.Layer<Client.HttpClient>

Source

Since v1.0.0

layerUndici

Signature

declare const layerUndici: Layer.Layer<Client.HttpClient>

Source

Since v1.0.0

layerUndiciWithoutDispatcher

Signature

declare const layerUndiciWithoutDispatcher: Layer.Layer<Client.HttpClient, never, Dispatcher>

Source

Since v1.0.0

layerWithoutAgent

Signature

declare const layerWithoutAgent: Layer.Layer<Client.HttpClient, never, HttpAgent>

Source

Since v1.0.0

undici

Dispatcher

Signature

declare const Dispatcher: Context.Tag<Dispatcher, Undici.Dispatcher>

Source

Since v1.0.0

Dispatcher (interface)

Signature

export interface Dispatcher {
  readonly _: unique symbol
}

Source

Since v1.0.0

UndiciRequestOptions (class)

Signature

declare class UndiciRequestOptions

Source

Since v1.0.0

dispatcherLayer

Signature

declare const dispatcherLayer: Layer.Layer<Dispatcher>

Source

Since v1.0.0

dispatcherLayerGlobal

Signature

declare const dispatcherLayerGlobal: Layer.Layer<Dispatcher>

Source

Since v1.0.0

makeDispatcher

Signature

declare const makeDispatcher: Effect.Effect<Undici.Dispatcher, never, Scope.Scope>

Source

Since v1.0.0