1.0.0-alpha.4 • Published 5 years ago
curlf v1.0.0-alpha.4
Curlf
File based, persistent and aesthetically pleasing HTTP requests! Just like curl, but with file templates.
Usage
npx curlf ./request.curlfOr from stdin:
npx curlf --stdin <<EOF
GET http://some.url
EOF.curlf file format
[[<version>] <method>] <url>
[<headerKey>: <headerValue>]*
[<body>]NOTE! At least one empty line must exist between headers block and body.
Environment variables can be used anywhere within the file!
<version>
Allowed values:
HTTP/1.0HTTP/1,HTTP/1.1HTTP/2,HTTP/2.0HTTP/3
<method>
Allowed values:
GETPOSTPUTPATCHDELETEHEADOPTIONS
<url>
You know, a full url
Logging
The following flags can be used to specify the logging level:
verbose,v
It can also be set through env variable CURLF_LOGLEVEL, which can take any of the following values:
VERBOSE,SILLY,4: Log detailed response (like request headers, request body and response headers)DEFAULT,INFO,3: Log basic response (url, status, response content)QUIET,2: Log response content onlyERROR,1: Log errors onlySILENT,0: Log nothing ¯\_(ツ)_/¯
Run travis script on bash
yq read .travis.yml 'script[*]' | bashTodo
- Support for further curl flags
- Custom renderers/formatters
1.0.0-alpha.4
5 years ago
1.0.0-alpha.3
6 years ago
1.0.0-alpha.2
6 years ago
1.0.0-alpha.1
6 years ago
1.0.0-beta.1
6 years ago