48.6. 消息标头


Expand
Name描述默认值类型

content-Encoding (producer) Constant: CONTENT_ENCODING

HTTP 内容编码。在 IN 和 OUT 消息上设置,以提供内容编码,如 gzip。

 

字符串

CamelHttpResponseCode (producer) Constant: HTTP_RESPONSE_CODE

来自外部服务器的 HTTP 响应代码。确定为 200。

 

int

CamelHttpResponseText (producer) Constant: HTTP_RESPONSE_TEXT

来自外部服务器的 HTTP 响应文本。

 

字符串

CamelHttpQuery (producer) Constant: HTTP_QUERY

URI 参数.将覆盖直接在端点上设置的现有 URI 参数。

 

字符串

CamelHttpProtocolVersion (producer) Constant: HTTP_PROTOCOL_VERSION

使用的 http 协议的版本。

 

字符串

host (producer) Constant: HTTP_HEADER_HOST

目标主机。

 

字符串

CamelRestHttpUri (producer) Constant: REST_HTTP_URI

rest http URI。

 

字符串

CamelHttpUri (producer) Constant: HTTP_URI

要调用的 URI。将覆盖直接在端点上设置的现有 URI。此 uri 是要调用的 http 服务器的 uri。它与 Camel 端点 uri 不同,您可以在其中配置端点选项,如安全等。此标头不支持,它只是 http 服务器的 uri。

 

字符串

CamelHttpPath (producer) Constant: HTTP_PATH

请求 URI 的路径,标头将使用 HTTP_URI 构建请求 URI。

 

字符串

CamelRestHttpQuery (producer) Constant: REST_HTTP_QUERY

rest http 查询。

 

字符串

CamelHttpRawQuery (producer) Constant: HTTP_RAW_QUERY

http raw 查询。

 

字符串

CamelHttpMethod (producer) Constant: HTTP_METHOD

要使用的 http 方法。

Enum 值:

  • GET
  • PATCH
  • POST
  • PUT
  • DELETE
  • HEAD
  • 选项
  • TRACE
 

HttpMethods

CamelHttpCharacterEncoding (producer) Constant: HTTP_CHARACTER_ENCODING

字符编码。

 

字符串

content-Type (producer) Constant: CONTENT_TYPE

HTTP 内容类型。在 IN 和 OUT 消息上设置,以提供内容类型,如 text/html。

 

字符串

注意

使用 cxf-rt-transports-jetty, cxf-rt-transports-jetty ,cxf-rt-transports-netty-server,cxf-rt-transports-undertow 库在 Camel Spring Boot 应用程序中创建您自己的 HTTP 服务器实例。建议您使用 Spring Boot 嵌入式 HTTP 服务器堆栈,该堆栈在使用 spring-boot-starter-web,cxf-spring-boot-starter-jaxrs, 或 cxf-spring-boot-starter-jaxws 依赖项时创建的。

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部