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

Function make

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

Source from the content-addressed store, hash-verified

155 * @since 4.0.0
156 */
157export const make = <M extends HttpMethod>(
158 method: M
159) =>
160(
161 url: string | URL,
162 options?: Options.NoUrl | undefined
163): HttpClientRequest =>
164 modify(empty, {
165 method,
166 url,
167 ...(options ?? undefined)
168 })
169
170/**
171 * Creates a `GET` request for the specified URL.

Callers 1

Calls 1

modifyFunction · 0.70

Tested by

no test coverage detected