Urara-Blog/node_modules/.pnpm-store/v3/files/53/cc5f7d7cf21894defb5a91e074c5993a34e37a666ae31ae7e583c10ce4f2170d9c6f94efd201c52ef7289ab4d57f2e0bddd2101c30dfc63366aa35ca26910d
2022-08-14 01:14:53 +08:00

37 lines
721 B
Text

/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import '../_version.js';
export type HTTPMethod = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT';
/**
* The default HTTP method, 'GET', used when there's no specific method
* configured for a route.
*
* @type {string}
*
* @private
*/
export const defaultMethod: HTTPMethod = 'GET';
/**
* The list of valid HTTP methods associated with requests that could be routed.
*
* @type {Array<string>}
*
* @private
*/
export const validMethods: HTTPMethod[] = [
'DELETE',
'GET',
'HEAD',
'PATCH',
'POST',
'PUT',
];