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

Bun overview

Http, https, ssh, and unix socket connection agents for Bun.

Added in v1.0.0


Table of contents


Bun

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.

Signature

export declare const makeBunHttpClientLayer: (
  connectionOptions: MobyConnectionOptions
) => Layer.Layer<HttpClient.HttpClient | Socket.WebSocketConstructor, never, never>

Added in v1.0.0