This is automatic generated document for things in Swow\Http\Protocol\ChunkedBodyState class

Class ChunkedBodyState

Properties

public $complete

是否已经读到 HTTP MESSAGE_COMPLETE

public $currentChunkLength

当前 chunk 的声明长度,用于补齐跨包 body 读取

public $finalized

是否已把 parser/buffer 状态回收并提交给连接

public $remainingChunkBytes

当前 chunk 中尚未从 socket 读取的剩余 body 字节数(增量读取大 chunk 时 > 0)

Methods

Method __construct

public function __construct ( Buffer $buffer , HttpParser $parser , int $parsedOffset , Buffer $bodyBuffer )

Copyright 2022 the Swow contributors