Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Normally the parser returns after successfully parsing a structured element (header, chunk header, or chunk body) even if there are octets remaining in the input. This is necessary when attempting to parse the header first, or when the caller wants to inspect information which may be invalidated by subsequent parsing, such as a chunk extension. The `eager` option controls whether the parser keeps going after parsing structured element if there are octets remaining in the buffer and no error occurs. This option is automatically set or cleared during certain stream operations to improve performance with no change in functionality.在通常处理流程中,即便输入数据中仍存在未解析的八位字节,解析器在成功解析一个结构化元素(如头部、分块头部或分块体)后也会立即返回。此行为在需要先解析头部,或调用方希望在后续解析可能覆盖某些信息(例如分块扩展)之前进行检查的场景下非常关键。`eager` 选项用于控制解析器在成功解析结构化元素后,若缓冲区中仍存在剩余字节且未发生错误,是否继续执行解析。该选项会在特定流操作中被自动启用或禁用,以便在不影响功能的前提下优化性能。