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

Function makeRequest

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected