Open pkoretic opened 8 years ago
https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
possible usage:
request.accepts("application/json"); # multiple request.accepts({"html", "application/json"});
or
request.accepts("html").accepts("application/json")
we also need these:
acceptsCharsets acceptsEncodings acceptsLanguages
https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
possible usage:
or
we also need these:
acceptsCharsets acceptsEncodings acceptsLanguages