This package has been deprecated

Author message:

This module has moved and is now available at @hapi/accept. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

accept
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/accept package

3.1.3 • Public • Published

Accept

HTTP Accept-* headers parsing.

npm version Build Status

Lead Maintainer - Eran Hammer

Introduction

Accept helps to answer the question of how best to respond to a HTTP request, based on the requesting browser's capabilities. Accept will parse the headers of a HTTP request and tell you what the preferred encoding is, what language should be used, and what charsets and media types are accepted.

Additional details about Accept headers and content negotiation can be found in IETF RFC 7231, Section 5.3.

API

For information on using Accept see the API documentation.

Package Sidebar

Install

npm i accept

Weekly Downloads

48,553

Version

3.1.3

License

BSD-3-Clause

Unpacked Size

17.2 kB

Total Files

9

Last publish

Collaborators

  • devinivy
  • marsup
  • nargonath
  • nlf