This container runs the HTTPie CLI tool.
Example:
docker run --rm -t gildas/httpie GET https://jsonplaceholder.typicode.com/todos/1
Writing a POST:
docker run --rm -t gildas/httpie POST https://jsonplaceholder.typicode.com/todos userId:=1 title="Do this" body="From a container"
Now, if you need to access your localhost, on Docker Linux:
docker run --rm -t --network host gildas/httpie GET http://127.0.0.1:3000/todos
On MacOS and Windows:
docker run --rm -t gildas/httpie GET http://host.docker.internal:3000/todos
To get HTTPie's help:
docker run --rm -it gildas/httpie --help