Metadata-Version: 2.3
Name: http_parse
Version: 0.1.1
Summary: A simple HTTP request parser.
Project-URL: Homepage, https://github.com/ritiksahni/http_parse
Project-URL: Bug Tracker, https://github.com/ritiksahni/http_parse/issues
Author-email: Ritik Sahni <ritik@ritiksahni.com>
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# HTTP Parse

A lightweight Python library for parsing raw HTTP requests.

## Installation

```bash
pip install http-parse
```

## Usage

```python
from http_parse import parse

raw_request = """
GET /path HTTP/1.1
Host: example.com
User-Agent: curl/8.5.0

{"data": "example"}
"""

parsed = parse(raw_request)
print(parsed.headers)  # Access headers
print(parsed.body)     # Access body
print(parsed.url)      # Access URL
```

## Features

- Parse HTTP headers into a dictionary
- Access request body
- Access and modify headers
- Extract URL and HTTP method

## License

MIT License