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

Function make

packages/effect/src/http/HttpClientRequest.ts:173–184  ·  view source on GitHub ↗
(
  method: M
)

Source from the content-addressed store, hash-verified

171 * @since 4.0.0
172 */
173export const make = <M extends HttpMethod>(
174 method: M
175) =>
176(
177 url: string | URL,
178 options?: Options.NoUrl | undefined
179): HttpClientRequest =>
180 modify(empty, {
181 method,
182 url,
183 ...(options ?? undefined)
184 })
185
186/**
187 * Creates a `GET` request for the specified URL.

Callers 1

Calls 1

modifyFunction · 0.70

Tested by

no test coverage detected