constants.d.ts 484 B

12345678910111213141516171819
  1. import '../_version.js';
  2. export declare type HTTPMethod = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT';
  3. /**
  4. * The default HTTP method, 'GET', used when there's no specific method
  5. * configured for a route.
  6. *
  7. * @type {string}
  8. *
  9. * @private
  10. */
  11. export declare const defaultMethod: HTTPMethod;
  12. /**
  13. * The list of valid HTTP methods associated with requests that could be routed.
  14. *
  15. * @type {Array<string>}
  16. *
  17. * @private
  18. */
  19. export declare const validMethods: HTTPMethod[];