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

Fetch overview

Http and https connection methods for fetch.

Added in v1.0.0


Table of contents


Fetch

makeFetchHttpClientLayer

Given the moby connection options, it will construct a layer that provides a http client that you could use to connect to your moby instance. By only supporting http and https connection options, this function does not rely on any specific platform package and uses the @effect/platform/FetchHttpClient as its base http layer.

Signature

export declare const makeFetchHttpClientLayer: (
  connectionOptions: HttpConnectionOptionsTagged | HttpsConnectionOptionsTagged
) => Layer.Layer<HttpClient.HttpClient | Socket.WebSocketConstructor, never, never>

Added in v1.0.0