<commit_before># http-headers

[![Build status](https://travis-ci.org/watson/http-headers.svg?branch=master)](https://travis-ci.org/watson/http-headers)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

Extract and parse headers from an HTTP request or reponse.

Converts:

```
HTTP/1.1 200 OK
Date: Tue, 10 Jun 2014 07:19:27 GMT
Connection: keep-alive
Transfer-Encoding: chunked

Hello World
```

To this:

```js
{ date: 'Tue, 10 Jun 2014 07:19:27 GMT',
  connection: 'keep-alive',
  'transfer-encoding': 'chunked' }
```<commit_msg>Add feature list to README.md<commit_after># http-headers

[![Build status](https://travis-ci.org/watson/http-headers.svg?branch=master)](https://travis-ci.org/watson/http-headers)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

Extract and parse headers from an HTTP request or reponse.

Converts:

```
HTTP/1.1 200 OK
Date: Tue, 10 Jun 2014 07:19:27 GMT
Connection: keep-alive
Transfer-Encoding: chunked

Hello World
```

To this:

```js
{ date: 'Tue, 10 Jun 2014 07:19:27 GMT',
  connection: 'keep-alive',
  'transfer-encoding': 'chunked' }
```

**Features:**

- Auto-detects and ignores HTTP start-line if present
- Auto-detects and ignores body if present
- Fully RFC 2068 compliant (please [open an
  issue](https://github.com/watson/http-headers/issues) if you find a
  discrepancy)
- Support multi-line headers (lines will be joined with a space)
- Support repeating headers (values will be joined with `, `)
{'fraction_non_alphanumeric': 0.15469613259668508, 'fraction_numerical': 0.040515653775322284, 'mean_word_length': 4.821428571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4834973', 'n_tokens_mistral': 636, 'n_tokens_neox': 552, 'n_words': 141}