...的HTTP请求后,选择客户端支持的某一种编码对HTTP响应进行编码,该编码信息放在HTTP响应的内容编码头(Content-Encoding header)。下面是个例子:
基于1个网页-相关网页
When the server sends back the resulting content, the Content-Encoding header reveals to the browser the format used to compress the content.
当服务器发送回生成的内容时,Content - encoding头向浏览器说明压缩内容所用的格式。
The Content-Encoding header tells the browser that the response body is compressed using the gzip algorithm. After decompressing the blob, you’ll see the HTML you’d expect
内容编码 头告诉浏览器整个响应体用gzip算法进行压缩。
Similarly, some systems transmit XML documents over HTTP without fully reading them but need to set the HTTP Content-type header to indicate the proper encoding.
类似地,有些系统通过http传输xml文档时,并没有全部读取文档,但需要设置HTTP的Content - type报头,指定正确的编码。
应用推荐