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

Function urlParams

packages/platform/src/internal/httpServerResponse.ts:271–286  ·  view source on GitHub ↗
(
  body: UrlParams.Input,
  options?: ServerResponse.Options.WithContentType | undefined
)

Source from the content-addressed store, hash-verified

269
270/** @internal */
271export const urlParams = (
272 body: UrlParams.Input,
273 options?: ServerResponse.Options.WithContentType | undefined
274): ServerResponse.HttpServerResponse => {
275 const headers = options?.headers ? Headers.fromInput(options.headers) : Headers.empty
276 return new ServerResponseImpl(
277 options?.status ?? 200,
278 options?.statusText,
279 headers,
280 options?.cookies ?? Cookies.empty,
281 internalBody.urlParams(
282 UrlParams.fromInput(body),
283 getContentType(options, headers)
284 )
285 )
286}
287
288/** @internal */
289export const raw = (body: unknown, options?: ServerResponse.Options | undefined): ServerResponse.HttpServerResponse =>

Callers

nothing calls this directly

Calls 1

getContentTypeFunction · 0.85

Tested by

no test coverage detected