# 为 REST 开发提供代码帮助

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/clion/llms.txt).

除了常见的 [Web 服务支持](null)外，CLion 还为开发 RESTful Web 服务提供以下功能：

* MIME 类型的代码完成

* 专用 [CLion 代码编辑器中的 HTTP 客户端](#httpClientToolWIndow)

## 代码编辑器中的 HTTP 客户端

专用的 [HTTP 客户端](http-client-in-product-code-editor.html) 提供以下用于处理 HTTP 请求的功能：

* 代码栏图标 ![在 HTTP 客户端中生成请求](https://resources.jetbrains.com/help/img/idea/2026.3/app.icons.web.newui.requestMapping%4014x14.svg)用于请求方法指示注解，例如 `@GET` 、 `@PUT` 、 `@POST` 或 `@DELETE` ，以便快速编写和执行请求。

* 显示服务器响应及已执行的请求历史

* [完成](auto-completing-code.html) 来自 `@Path` 和 `@Produces` 注解的 HTTP 请求部分，在 C/C++ 代码中指定

|  在 C/C++ 代码中更改  |  在编辑器中更改 HTTP 请求  |
| --- | --- |
|   `@Path`  注释已更新。  |     当您调用代码完成时，  `Request-URI`  建议列表的内容会发生变化。 `Ctrl+Space` (Windows), `⌃ Space` (macOS), `⌃ Space` (IntelliJ IDEA Classic (macOS)), `⌃ Space` (macOS System Shortcuts), `Ctrl+Space` (XWin), `Ctrl+Space` (GNOME), `Ctrl+Space` (KDE), `Alt+/` (Emacs), `Ctrl+Space` (Sublime Text), `⌃ Space` (Sublime Text (macOS)), `⌃ Space` (Xcode), `Ctrl+Space` (Visual Studio), `⌃ Space` (Visual Studio (macOS)), `Ctrl+Space` (ReSharper), `⌃ Space` (ReSharper (macOS)), `Ctrl+Space` (QtCreator), `⌃ Space` (QtCreator (macOS)), `Ctrl+Space` (NetBeans), `Ctrl+Space` (Eclipse), `⌃ Space` (Eclipse (macOS))     |
|   `@Produces`  注释已更新。  |     当您调用代码补全 `Ctrl+Space` (Windows), `⌃ Space` (macOS), `⌃ Space` (IntelliJ IDEA Classic (macOS)), `⌃ Space` (macOS System Shortcuts), `Ctrl+Space` (XWin), `Ctrl+Space` (GNOME), `Ctrl+Space` (KDE), `Alt+/` (Emacs), `Ctrl+Space` (Sublime Text), `⌃ Space` (Sublime Text (macOS)), `⌃ Space` (Xcode), `Ctrl+Space` (Visual Studio), `⌃ Space` (Visual Studio (macOS)), `Ctrl+Space` (ReSharper), `⌃ Space` (ReSharper (macOS)), `Ctrl+Space` (QtCreator), `⌃ Space` (QtCreator (macOS)), `Ctrl+Space` (NetBeans), `Ctrl+Space` (Eclipse), `⌃ Space` (Eclipse (macOS))时，  `接受` 标头字段建议列表的内容会发生变化。     |

## See also

### 流程

[RESTful 网络服务](restful-webservices.html)

