An open API service indexing awesome lists of open source software.

https://github.com/cortiz/monica

Monica is designed to handle Network requests and responses.
https://github.com/cortiz/monica

api-client api-rest http-client http-requests security-tools testing

Last synced: 4 days ago
JSON representation

Monica is designed to handle Network requests and responses.

Awesome Lists containing this project

README

          

# Monica

Monica is designed to handle Network requests and responses.

## Features
* Parse raw HTTP requests and return a Request object.
* Send HTTP requests with custom headers and body.
* Parse HTTP responses, including headers and body.

## Usage
* Runs all `mon` files in the current directory
```bash
monica run
```
* Run a single file
```bash
monica run -s
```

## Mon file format
Lines starting with `#` are considered comments and are ignored.
### HTTP Request
```
#Comment
HTTP METHOD URL
HEADERS

BODY
```

#### Example
```
# Simple HTTP Request
GET http://httpbin.org/status/200
Host: httpbin.org
User-Agent: monica/0.1.0

```

```
# Simple POST HTTP Request
GET http://httpbin.org/anything
Host: httpbin.org
User-Agent: monica/0.1.0

{
"key": "value"
}
```