Monica is designed to handle Network requests and responses.
- Parse raw HTTP requests and return a Request object.
- Send HTTP requests with custom headers and body.
- Parse HTTP responses, including headers and body.
- Runs all
mon
files in the current directorymonica run
- Run a single file
monica run -s <file>
Lines starting with #
are considered comments and are ignored.
#Comment
HTTP METHOD URL
HEADERS
BODY
# Simple HTTP Request
GET https://httpbin.org/status/200
Host: httpbin.org
User-Agent: monica/0.1.0
# Simple POST HTTP Request
GET https://httpbin.org/anything
Host: httpbin.org
User-Agent: monica/0.1.0
{
"key": "value"
}