A docker image for httpie
Use this Docker image from the command line in the same way you would with httpie.
First build the image:
docker build -t http .
Now use the image to call http with docker run -it --rm http
:
Run http without arguments:
docker run -it --rm http
Usage:
docker run -it --rm http --help
Version info:
docker run -it --rm http --version
Inspect headers:
docker run -it --rm http --headers https://horrell.ca
Add this to your .bashrc
or .zshrc
file:
alias http='docker run -i --rm http'
The lateset version of this image is published to the Docker Hub. You can use it like this:
docker pull chorrell/http:latest
docker run -i --rm chorrell/http:latest
And setup an alias like this:
alias http='docker run -i --rm ghcr.io/chorrell/http:latest'
The lateset version of this image is published to the GitHub Container Registry. You can use it like this:
docker pull ghcr.io/chorrell/http:latest
docker run -i --rm ghcr.io/chorrell/http:latest
And setup an alias like this:
alias http='docker run -i --rm ghcr.io/chorrell/http:latest'