Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
23
node_modules/next/dist/esm/server/web/http.js
generated
vendored
Normal file
23
node_modules/next/dist/esm/server/web/http.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* List of valid HTTP methods that can be implemented by Next.js's Custom App
|
||||
* Routes.
|
||||
*/ export const HTTP_METHODS = [
|
||||
'GET',
|
||||
'HEAD',
|
||||
'OPTIONS',
|
||||
'POST',
|
||||
'PUT',
|
||||
'DELETE',
|
||||
'PATCH'
|
||||
];
|
||||
/**
|
||||
* Checks to see if the passed string is an HTTP method. Note that this is case
|
||||
* sensitive.
|
||||
*
|
||||
* @param maybeMethod the string that may be an HTTP method
|
||||
* @returns true if the string is an HTTP method
|
||||
*/ export function isHTTPMethod(maybeMethod) {
|
||||
return HTTP_METHODS.includes(maybeMethod);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=http.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue