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.
- Host: GitHub
- URL: https://github.com/cortiz/monica
- Owner: cortiz
- License: mit
- Created: 2024-06-14T02:56:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-21T03:15:49.000Z (about 2 years ago)
- Last Synced: 2026-01-31T12:17:51.930Z (5 months ago)
- Topics: api-client, api-rest, http-client, http-requests, security-tools, testing
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
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"
}
```