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

Function makeRequest

packages/effect/test/http/HttpServerError.test.ts:19–19  ·  view source on GitHub ↗
(method: string, url: string)

Source from the content-addressed store, hash-verified

17import * as UrlParams from "effect/http/UrlParams"
18
19const makeRequest = (method: string, url: string) => HttpServerRequest.fromWeb(new Request(url, { method }))
20const makeResponse = (status: number) => HttpServerResponse.empty({ status })
21
22describe("HttpServerError", () => {

Callers 7

Runners.test.tsFile · 0.50
requestFunction · 0.50
requestFunction · 0.50
saveFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected