Skip to content
Myr

perf(hono-base): restore the rest parameter in `fetch` (#5184)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by Yusuke Wada · parent a6d0c12 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/hono-base.ts+2 added-2 removed
478 unmodified lines
479 fetch: (480 request: Request,481 env?: E['Bindings'] | {},482 executionCtx?: ExecutionContext483 ) => Response | Promise<Response> = (request, env, executionCtx) => {484 return this.#dispatch(request, executionCtx, env, request.method)483 ) => Response | Promise<Response> = (request, ...rest) => {484 return this.#dispatch(request, rest[1], rest[0], request.method)485 }486487 /**488 * `.request()` is a useful method for testing.
57 unmodified lines