带传输编码的HTTP响应中的最大块大小是多少? [英] What is the maximum chunk size in HTTP response with Transfer-Encoding chunked?

查看:126
本文介绍了带传输编码的HTTP响应中的最大块大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

w3.org(RFC2616)似乎不为块定义最大大小.但是,如果没有最大的块大小,就没有块扩展的空间.必须有一个最大的块大小,否则,如果无法理解(建议:"MUST ignore chunk-extension extensions they do not understand"),我将不建议我忽略块扩展.

The w3.org (RFC2616) seems not to define a maximum size for chunks. But without a maximum chunk-size there is no space for the chunk-extension. There must be a maximum chunk-size, else I can't ignore the chunk-extension as I'm advised to do if it can't be understood (Quote:"MUST ignore chunk-extension extensions they do not understand").

推荐答案

每个块扩展名必须以分号开头,并且块扩展名列表必须以CRLF结尾.解析块大小时,请以分号或CRLF停止.如果您以分号停止,则忽略下一个CRLF之前的所有内容.不需要最大块大小.

Each chunk extension must begin with a semi-colon and the list of chunk extensions must end with a CRLF. When parsing the chunk-size, stop at either a semi-colon or a CRLF. If you stopped at a semi-colon, ignore everything up to the next CRLF. There is no need for a maximum chunk-size.

chunk          = chunk-size [ chunk-extension ] CRLF
                 chunk-data CRLF

chunk-size     = 1*HEX

chunk-extension= *( ";" chunk-ext-name [ "=" chunk-ext-val ] )

这篇关于带传输编码的HTTP响应中的最大块大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆