Metadata-Version: 2.1
Name: http-raw
Version: 0.1.1
Summary: A library for better processing of raw data
Home-page: https://github.com/Buzz2d0/httpraw
Author: buzz
Author-email: admin@imipy.com
License: GPL
Keywords: http-raw
Platform: all
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: PySocks

# http-raw

A library for better processing of raw data✌️

## Install

```bash
pip install http-raw
```

## Use

```python
import httpraw

raw = '''POST /post HTTP/1.1
Host: httpbin.org
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 19

key1=val1&key2=val2
'''

# resp is requests Response
resp = httpraw.request(raw=raw)
print(resp.status_code)
print(resp.text)

proxy = {
    'socks5': '127.0.0.1:1086'
}
resp = httpraw.request(raw=raw, proxy=proxy, timeout=5, ssl=True, verify=True)
```

## Dev

```bash
pipenv install --dev
```


