(method: string, path: string, init?: RequestInit)
| 13 | * @returns A constructed request, this still needs to be sent with a optional body |
| 14 | */ |
| 15 | export function request(method: string, path: string, init?: RequestInit) { |
| 16 | let opts = { |
| 17 | ...(init ?? {}) |
| 18 | } |
| 19 | |
| 20 | return new Request(method, path, opts); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Construct a new GET request |