Metadata-Version: 2.1
Name: shttp-cli
Version: 0.1.0
Summary: A command-line HTTP client.
Home-page: https://github.com/interrrp/shttp
License: GPL-3.0-or-later
Author: int
Author-email: int@addictedto.coffee
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: typer (>=0.9.0,<0.10.0)
Project-URL: Repository, https://github.com/interrrp/shttp
Description-Content-Type: text/markdown

# An extremely tiny and straightforward HTTP client

## Installation

shttp is a Python script. You may install it using [pip](https://pip.pypa.io/en/stable/):

```sh
pip install shttp-cli
```

## Basic usage

### Send a GET request

```sh
shttp http://httpbin.org/get
```

### Send a POST request

```sh
shttp --method POST http://httpbin.org/post
```

or

```sh
shttp -m POST http://httpbin.org/post
```

### Send a POST request with a body

```sh
shttp -m POST http://httpbin.org/post -d '{"foo": "bar"}'
```

## Licensing

This code is released under the [GPLv3 license](./LICENSE).

