accepts
accepts copied to clipboard
Higher-level content negotiation
Hi 👋 I'm using express, and i'm trying to figure out how to get the preferred region code (2 letter country code) do you have any recommendations to deal with...
It would be nice to add types so that the following would work. ```js // Accepts: application/hal+json const accept = accepts(req); switch(accept.type(['json', 'html'])) { case 'json': // would match both...
Hi! Reporting a bug. When I import express, it imports accepts which imports negotiator. However, it seems that version 1.3.8 of accepts cannot find the negotiator dependency. It has to...
As per spec https://www.rfc-editor.org/rfc/rfc9110#section-12.5.1-14 this is valid: `Accept: text/*, text/plain, text/plain;format=flowed, */*` This library does not seem to have a way to extract the format parameter, does it? Would that...
Hi, i want to use this library with not only `IncomingMessage` instances. Node.js 16+ has Fetch API now and it has global constructors such as `Request`, `Response`, `Headers` and other....
Use of the preferred option in encoding There must be a backport to version 1, as it is a feature needed for https://github.com/expressjs/compression/pull/194