PHP Classes

File: public/js/lib/director/lib/director/http/methods.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Silex MVC Blog   public/js/lib/director/lib/director/http/methods.js   Download  
File: public/js/lib/director/lib/director/http/methods.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Silex MVC Blog
MVC based blog using on the Silex micro-framework
Author: By
Last change:
Date: 8 years ago
Size: 1,502 bytes
 

Contents

Class file image Download
/*! * Express - router - methods * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed * * Adapted for director * (C) 2011 Charlie Robbins, Paolo Fraogmeni, & the Contributors. * */ /** * Hypertext Transfer Protocol -- HTTP/1.1 * http://www.ietf.org/rfc/rfc2616.txt */ var RFC2616 = ['OPTIONS', 'GET', 'POST', 'PUT', 'DELETE', 'TRACE', 'CONNECT']; /** * HTTP Extensions for Distributed Authoring -- WEBDAV * http://www.ietf.org/rfc/rfc2518.txt */ var RFC2518 = ['PROPFIND', 'PROPPATCH', 'MKCOL', 'COPY', 'MOVE', 'LOCK', 'UNLOCK']; /** * Versioning Extensions to WebDAV * http://www.ietf.org/rfc/rfc3253.txt */ var RFC3253 = ['VERSION-CONTROL', 'REPORT', 'CHECKOUT', 'CHECKIN', 'UNCHECKOUT', 'MKWORKSPACE', 'UPDATE', 'LABEL', 'MERGE', 'BASELINE-CONTROL', 'MKACTIVITY']; /** * Ordered Collections Protocol (WebDAV) * http://www.ietf.org/rfc/rfc3648.txt */ var RFC3648 = ['ORDERPATCH']; /** * Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol * http://www.ietf.org/rfc/rfc3744.txt */ var RFC3744 = ['ACL']; /** * Web Distributed Authoring and Versioning (WebDAV) SEARCH * http://www.ietf.org/rfc/rfc5323.txt */ var RFC5323 = ['SEARCH']; /** * PATCH Method for HTTP * http://www.ietf.org/rfc/rfc5789.txt */ var RFC5789 = ['PATCH']; /** * Expose the methods. */ module.exports = [].concat( RFC2616, RFC2518, RFC3253, RFC3648, RFC3744, RFC5323, RFC5789 ).map(function (method) { return method.toLowerCase(); });