MCPcopy Index your code
hub / github.com/Effect-TS/effect / empty

Function empty

packages/platform/src/internal/httpServerResponse.ts:90–97  ·  view source on GitHub ↗
(options?: ServerResponse.Options.WithContent | undefined)

Source from the content-addressed store, hash-verified

88
89/** @internal */
90export const empty = (options?: ServerResponse.Options.WithContent | undefined): ServerResponse.HttpServerResponse =>
91 new ServerResponseImpl(
92 options?.status ?? 204,
93 options?.statusText,
94 options?.headers ? Headers.fromInput(options.headers) : Headers.empty,
95 options?.cookies ?? Cookies.empty,
96 internalBody.empty
97 )
98
99/** @internal */
100export const redirect = (

Callers 1

fromWebFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…