V2EX  ›  英汉词典

Transfer-Encoding

定义 Definition

Transfer-Encoding(传输编码)是 HTTP 头字段,用于指示消息体在网络传输过程中采用的编码方式(最常见是 chunked“分块传输”),以便接收方能正确解析数据流。它描述的是“怎么传”,不等同于内容本身的压缩格式(如 Content-Encoding: gzip)。除最常见含义外,在较旧或特定场景中也可能出现其他传输编码取值。

发音 Pronunciation (IPA)

/ˈtrænsfɚ ɪnˈkoʊdɪŋ/

例句 Examples

The server replied with Transfer-Encoding: chunked.
服务器返回了 Transfer-Encoding: chunked

When Transfer-Encoding is set, the client must decode the stream accordingly before assembling the message body.
当设置了 Transfer-Encoding 时,客户端必须按对应规则解码数据流,然后再组装消息体。

词源 Etymology

该词由 transfer(传输、转移)与 encoding(编码)组合而成,是网络协议语境下的技术复合词。它在 HTTP/1.1 规范中被系统化使用,用来表达“在传输层面如何对消息体进行封装/分块”,以适应流式传输与不预先知道长度的情况。

相关词 Related Words

文献与作品出现 Literary / Notable Works

  • RFC 7230: Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing(详细定义了 Transfer-Encodingchunked
  • RFC 9112: HTTP/1.1(更新并继承相关语义)
  • MDN Web Docs: Transfer-Encoding header(面向开发者的说明与示例)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   696 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 19:12 · PVG 03:12 · LAX 11:12 · JFK 14:12
♥ Do have faith in what you're doing.