MCPcopy Create free account
hub / github.com/Effect-TS/effect / make

Function make

packages/effect/src/unstable/http/HttpServer.ts:100–108  ·  view source on GitHub ↗
(
  options: {
    readonly serve: (
      httpEffect: Effect.Effect<HttpServerResponse, unknown, HttpServerRequest | Scope.Scope>,
      middleware?: Middleware.HttpMiddleware
    ) => Effect.Effect<void, never, Scope.Scope>
    readonly address: Address
  }
)

Source from the content-addressed store, hash-verified

98 * @since 4.0.0
99 */
100export const make = (
101 options: {
102 readonly serve: (
103 httpEffect: Effect.Effect<HttpServerResponse, unknown, HttpServerRequest | Scope.Scope>,
104 middleware?: Middleware.HttpMiddleware
105 ) => Effect.Effect<void, never, Scope.Scope>
106 readonly address: Address
107 }
108): HttpServer["Service"] => options
109
110/**
111 * Creates a layer that starts serving an HTTP response effect with the current

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected