(path: string, body?: BodyInit)
| 24 | return await this.handler(req, STUB); |
| 25 | } |
| 26 | async post(path: string, body?: BodyInit): Promise<Response> { |
| 27 | const url = this.toUrl(path); |
| 28 | const req = new Request(url, { method: "post", body }); |
| 29 | return await this.handler(req, STUB); |
| 30 | } |
| 31 | async patch(path: string, body?: BodyInit): Promise<Response> { |
| 32 | const url = this.toUrl(path); |
| 33 | const req = new Request(url, { method: "patch", body }); |