RustRover
 
Get RustRover

HTTP Client

Last modified: 31 January 2025

With the HTTP Client plugin, you can create, edit, and execute HTTP requests directly in the RustRover code editor.

https://resources.jetbrains.com/help/img/idea/2024.3/basic_request.png
Gif

There are two main use cases when you need to compose and run HTTP requests:

  • When you are developing a RESTful web service and want to make sure it works as expected, is accessible in compliance with the specification, and responds correctly.

  • When you are developing an application that addresses a RESTful web service. In this case, it is helpful to investigate the access to the service and the required input data before you start the development. During development, you may also call this web service from outside your application. This may help locate errors when your application results in unexpected output while no logical errors are detected in your code, and you suspect that the bottleneck is the interaction with the web service.

HTTP requests are stored in .http and .rest files and are marked with the HTTP file icon icon.

Support for HTTP files includes the following features:

  • Code highlighting

  • Code completion for hosts, method types, header fields, and endpoints defined via OpenAPI

  • Code folding for requests, their parts, and response handler scripts

  • Reformat requests according to your HTTP Request code style.

  • Inline documentation for request header fields and doc tags

  • Viewing the structure of HTTP request files

  • Language injections in Web languages inside the request message body

  • Move refactorings

  • Live templates

If necessary, before you begin, configure the Proxy settings on the HTTP Proxy page of the Settings dialog (CtrlAlt0S) .