( method: M )
| 171 | * @since 4.0.0 |
| 172 | */ |
| 173 | export 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. |
no test coverage detected