JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 62604
  • Score
    100M100P100Q58905F
  • License BSD-3-Clause

HTTP Accept-* headers parsing

Package Exports

  • accept
  • accept/lib/mediatype

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (accept) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#Accept

HTTP Accept-* headers parsing.

npm version Build Status Dependency Status

Join the chat at https://gitter.im/hapijs/accept

Lead Maintainer - Mark Bradshaw

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.