Introducing our new CEO Don Johnson - Read More

jetbrains/intellij-http-client

Verified Publisher

By JetBrains

Updated 1 day ago

Official Docker image for IntelliJ HTTP Client CLI

Image
API Management
Integration & Delivery
17

100K+

JetBrains IntelliJ HTTP Client

This is a Docker image for IntelliJ HTTP Client CLI by JetBrains.

Usage

Image expects /workdir volume. HTTP Client inside container uses /workdir as current working directory, so all paths should be relative to it.

Example command:

$ docker run --rm -i -t -v $PWD:/workdir jetbrains/intellij-http-client \
  -L VERBOSE \
  -e env \
  -v env.json \
  requests.http
Testing services running on the host

In the case of testing services, which are executed on the host machine, it is possible to use -D. This option tells HTTP Client to resolve localhost from the request to localhost of the host machine, instead of container. So, if there is a file test.http with request to localhost:

### Test simple GET
GET http://localhost:8080/my-api/

and service running on the host machine and listening to 8080 port, we can simply test it with docker container using the following command with -D option:

$ docker run --rm -v $PWD:/workdir jetbrains/intellij-http-client -D test.http

Under the hood, HTTP Client resolves localhost to docker.host.internal, which points to localhost of the host machine. You can read this StackOverflow comment about how to enable host.docker.internal on your OS and what other options for accessing localhost are possible.

Feedback

To file an issue or feature request, please create a ticket in our tracker.

Docker Pull Command

docker pull jetbrains/intellij-http-client