Metadata-Version: 2.3
Name: ruquests
Version: 0.1.0
Requires-Dist: patchelf >=0.17.2.1
License-File: LICENSE
Summary: Add your description here
Author-email: João Severo <joaovbsevero@gmail.com>
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# pyreqwests

## Usage

Calling HTTP methods (get, post, put, patch, delete) creates a request to be sent. When user wants to actually send it, it should call "send()" and it will return a response object which has the headers and the body of the response.

---

Simple usage example:

```python
import pyreqwests

r = rrequests.get("http://google.com", headers={"accept": "text/html"}).send()
print(r.text())
```

---

Raising for invalid status code

```python
import rrequests

r = rrequests.post("http://google.com").send()
r.raise_for_status()
```

---

Checking response headers

```python
import rrequests

r = rrequests.get("http://google.com").send()
print(r.headers)
```

---

Checking status code

```python
import rrequests

r = rrequests.get("http://google.com").send()
print(r.status_code)
```

