File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77} from "https://deno.land/x/isx@1.0.0-beta.24/mod.ts" ;
88export { concatPath } from "https://deno.land/x/url_concat@1.0.0-beta.1/mod.ts" ;
99export { chain } from "https://deno.land/x/chain_handler@1.1.0/mod.ts" ;
10+ export { Method } from "https://deno.land/x/http_utils@1.0.0-beta.7/method.ts" ;
1011
1112type ParamKeyName < NameWithPattern > = NameWithPattern extends
1213 `${infer Name } {${infer _ } ` ? Name
Original file line number Diff line number Diff line change 66 concatPath ,
77 isFunction ,
88 isString ,
9+ Method ,
910 type ParseUrlParams ,
1011} from "./deps.ts" ;
1112import type {
@@ -16,7 +17,7 @@ import type {
1617 Middleware ,
1718 Params ,
1819} from "./types.ts" ;
19- import { assert , matchMethod , Method } from "./utils.ts" ;
20+ import { assert , matchMethod } from "./utils.ts" ;
2021
2122/** Context of `params`. */
2223export interface ParamsContext < T extends string = string > {
Original file line number Diff line number Diff line change @@ -10,19 +10,6 @@ export function assert(
1010 }
1111}
1212
13- /** HTTP request method enum. */
14- export const enum Method {
15- Get = "GET" ,
16- Head = "HEAD" ,
17- Post = "POST" ,
18- Put = "PUT" ,
19- Delete = "DELETE" ,
20- Connect = "CONNECT" ,
21- Options = "OPTIONS" ,
22- Trace = "TRACE" ,
23- Patch = "PATCH" ,
24- }
25-
2613export function matchMethod (
2714 candidates : readonly string [ ] ,
2815 method : string ,
You can’t perform that action at this time.
0 commit comments