jshttp / methods Goto Github PK
View Code? Open in Web Editor NEWHTTP verbs that node supports
License: MIT License
HTTP verbs that node supports
License: MIT License
PURGE is missing from the list. This method has been supported since node v0.8.0.
Also an unrelated little nitpick, 'SEARCH' should be moved to be between 'PROPPATCH' and 'UNLOCK' to match the order in http_parser.h
.
It'd be nice if requiring this with Browserify didn't incur 5000 lines of extra dependencies (E.g. http
, which in turn requires buffer
, etc.) for people who are trying to keep builds smaller. It's as simple as adding this to the package.json
:
"browser": {
"http": false
}
The only reason this is an issue over a PR, however, is that returning the browserified http
module methods could be seen as a feature - so I leave this in the eye of the beholder. Either way, I've copied the list out manually now to avoid the extra debt.
Hi TJ,
It's been suggested that I file a PR here. This is the original request I filed:
The reference documents are the following:
RFC: http://tools.ietf.org/html/rfc5323
Node: https://github.com/joyent/http-parser/blob/master/http_parser.h#L88
Could you please add support for the verb SEARCH
? Thanks in advance!
Hi, any chance you could add a clear license on this? The only thing I can spot is "MIT"
in the json packaging file...
Cheers!
The fallback methods in https://github.com/jshttp/methods/blob/master/index.js#L22 do not encompass the new QUERY method.
We could use code to include it if the Node version you're running includes it, but I think a new major would be more appropriate if we have differences in http.METHODS
between node majors. Not sure this has ever happened before.
related: expressjs/express#5628
or add me as maintainer
same usual reasons...
thanks
It would be helpful to know when adding this dependency is necessary.
Largely forgotten but defined in RFC 2068.
This is:
nodejs/node-v0.x-archive@61002285
so node-methods could use http.METHODS for cutting edge node.js and
a plain list for legacy node.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.