1 | # Accept
|
2 |
|
3 | HTTP Accept-* headers parsing.
|
4 |
|
5 | [![npm version](https://badge.fury.io/js/accept.svg)](http://badge.fury.io/js/accept) [![Build Status](https://secure.travis-ci.org/hapijs/accept.png)](http://travis-ci.org/hapijs/accept)
|
6 |
|
7 | Lead Maintainer - [Eran Hammer](https://github.com/hueniverse)
|
8 |
|
9 | ## Introduction
|
10 |
|
11 | 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.
|
12 |
|
13 | Additional details about Accept headers and content negotiation can be found in [IETF RFC 7231, Section 5.3](https://tools.ietf.org/html/rfc7231#section-5.3).
|
14 |
|
15 | ## API
|
16 |
|
17 | For information on using Accept see the [API documentation](API.md).
|