Run HTTP Requests in Android Studio

We are happy to announce that our HTTP Client plugin is now available in Android Studio! HTTP Client is a powerful tool for making HTTP, gRPC, GraphQL, and WebSocket requests. Its text-based interface offers seamless integration with the editor, along with extensive coding assistance including highlighting, code completion, refactorings, and inline documentation. While it was […]

Jun 12, 2025 - 17:20
 0
Run HTTP Requests in Android Studio

We are happy to announce that our HTTP Client plugin is now available in Android Studio!

HTTP Client is a powerful tool for making HTTP, gRPC, GraphQL, and WebSocket requests. Its text-based interface offers seamless integration with the editor, along with extensive coding assistance including highlighting, code completion, refactorings, and inline documentation.

While it was previously bundled with paid IDE subscriptions only, this powerful plugin is now free for Android Studio users – it just requires creating a JetBrains Account. Now you can test server API calls right from the IDE before implementing them in the application. 

The HTTP Client plugin is available for Android Studio 2024.3.2 Meerkat from JetBrains Marketplace – either download it from the web or via the Android Studio Settings | Plugins, Marketplace tab.

Generate and run HTTP requests right from your code: Retrofit, OkHttp, and Ktor!

Whenever you have a URL in your app source code, you can launch an HTTP request right away from the URL inlay or gutter indicator. 

The generated request opens in the right split where you can run it, modify it, or add pre- and post-request scripts, all without switching away from your code and losing context. The request result will be shown in a dedicated tool window.

Configure environments

Environment files allow you to define and store environment variables and configurations for HTTP requests. You can switch between different environments (for example – dev, prod, and test), apply environment-specific values to requests, and reuse previously defined configurations. 

Run integration tests and manage HTTP requests with scripts

HTTP Client supports complex scenarios written in JavaScript. Pre-scripts allow you to generate data for requests. Response handler scripts run after receiving responses, allowing you to pass data to subsequent requests. With these scripts, you can also set up various tests and run them in the corresponding tab of the Services tool window.

Import curl commands, convert Postman collections

curl commands copied to the clipboard can automatically be converted when pasted to an HTTP file or via the dedicated import action.

If you already have a Postman collection saved as a JSON file, it can also be imported and converted, so you can run requests from it in the IDE.

Work with OpenAPI / Swagger specifications

With the OpenAPI Specifications plugin, you can:

  • Create HTTP requests directly from OpenAPI files.
  • Complete URL and request bodies in HTTP requests based on the API specification.

For more details about HTTP request syntax and available features, please refer to the official documentation. There are also built-in examples demonstrating different scenarios using the test environment that you might want to try.

Happy coding!