the-moby-effect
Version:
Moby/Docker API client built using effect-ts
87 lines • 3.29 kB
JavaScript
/**
* Http client layers for all platforms.
*
* @since 1.0.0
*/
import * as internalAgnostic from "./internal/platforms/agnostic.js";
import * as internalBun from "./internal/platforms/bun.js";
import * as internalDeno from "./internal/platforms/deno.js";
import * as internalFetch from "./internal/platforms/fetch.js";
import * as internalNode from "./internal/platforms/node.js";
import * as internalUndici from "./internal/platforms/undici.js";
import * as internalWeb from "./internal/platforms/web.js";
/**
* 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.
*
* @since 1.0.0
* @category Connection
*/
export const makeAgnosticHttpClientLayer = internalAgnostic.makeAgnosticHttpClientLayer;
/**
* 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. This is no
* different than the Node implementation currently.
*
* This function will dynamically import the `@effect/platform-node` package.
*
* @since 1.0.0
* @category Connection
*/
export const makeBunHttpClientLayer = internalBun.makeBunHttpClientLayer;
/**
* 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. This is no
* different than the Node implementation currently.
*
* This function will dynamically import the `@effect/platform-node` package.
*
* FIXME: https://github.com/denoland/deno/issues/21436?
*
* @since 1.0.0
* @category Deno
*/
export const makeDenoHttpClientLayer = internalDeno.makeDenoHttpClientLayer;
/**
* 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.
*
* @since 1.0.0
* @category Fetch
*/
export const makeFetchHttpClientLayer = internalFetch.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.
*
* This function will dynamically import the `@effect/platform-node` package.
*
* @since 1.0.0
* @category NodeJS
*/
export const makeNodeHttpClientLayer = internalNode.makeNodeHttpClientLayer;
/**
* 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.
*
* This function will dynamically import the `@effect/platform-node` and
* `undici` packages.
*
* @since 1.0.0
* @category Undici
*/
export const makeUndiciHttpClientLayer = internalUndici.makeUndiciHttpClientLayer;
/**
* 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.
*
* This function will dynamically import the `@effect/platform-browser` package.
*
* @since 1.0.0
* @category Browser
*/
export const makeWebHttpClientLayer = internalWeb.makeWebHttpClientLayer;
//# sourceMappingURL=MobyPlatforms.js.map