(method: M)
| 73 | |
| 74 | /** @internal */ |
| 75 | export const make = <M extends HttpMethod>(method: M) => |
| 76 | ( |
| 77 | url: string | URL, |
| 78 | options?: M extends "GET" | "HEAD" ? ClientRequest.Options.NoBody : ClientRequest.Options.NoUrl |
| 79 | ) => |
| 80 | modify(empty, { |
| 81 | method, |
| 82 | url, |
| 83 | ...(options ?? undefined) |
| 84 | }) |
| 85 | |
| 86 | /** @internal */ |
| 87 | export const get = make("GET") |
no test coverage detected