Attributes
Includes Deno configuration
Repository
Current version released
4 years ago
Dependencies
Caldera
Options
--auth - path to auth file (json)
--port.http - http port
--port.https - https port
--crt - path to certificate file (Default: "server.crt")
--key - path to certificate key (Default: "server.key")
--timeout - for establishing TCP connection (Default: 500 milliseconds)Auth json file example
{
"foo": "bar",
"hello": "world",
"username": "password"
}Server side
serve HTTP
deno run --allow-net -- https://deno.land/x/caldera/bin.ts --port.http=9000with auth verification file
deno run --allow-net --allow-read -- https://deno.land/x/caldera/bin.ts --port.http=9000 --auth=plain.jsonserve HTTPs
deno run --allow-net --allow-read -- https://deno.land/x/caldera/bin.ts --port.https=9000HTTPs with specified certificate files
deno run --allow-net --allow-read -- https://deno.land/x/caldera/bin.ts --port.https=9000 --crt=cert.txt --key=key.txtClient side
to http proxy
curl -p -x http://localhost:9000 http://example.comto http proxy with basic auth
curl -p -x http://user:pass@localhost:9000 http://example.comto https proxy with self-signed certificate
curl -p --proxy-insecure -x https://localhost:9000 http://example.com