You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
549 B

7 years ago
  1. var http = require('http');
  2. if (http.METHODS) {
  3. module.exports = http.METHODS.map(function(method){
  4. return method.toLowerCase();
  5. });
  6. } else {
  7. module.exports = [
  8. 'get',
  9. 'post',
  10. 'put',
  11. 'head',
  12. 'delete',
  13. 'options',
  14. 'trace',
  15. 'copy',
  16. 'lock',
  17. 'mkcol',
  18. 'move',
  19. 'purge',
  20. 'propfind',
  21. 'proppatch',
  22. 'unlock',
  23. 'report',
  24. 'mkactivity',
  25. 'checkout',
  26. 'merge',
  27. 'm-search',
  28. 'notify',
  29. 'subscribe',
  30. 'unsubscribe',
  31. 'patch',
  32. 'search',
  33. 'connect'
  34. ];
  35. }