This is automatic generated document for things in Swow\Psr7\Message\ChunkedBodyPsrStream class

Class ChunkedBodyPsrStream

Methods

Method __construct

public function __construct ( ChunkedBodyStream $chunkedBodyStream )

仅做协议层到 PSR7 的适配,所有真实状态都在底层 chunked stream 中

Method __toString

public function __toString ( ) : string

Method close

public function close ( ) : void

Method detach

public function detach ( ) : mixed

Method eof

public function eof ( ) : bool

Method getChunkedBodyStream

public function getChunkedBodyStream ( ) : ChunkedBodyStream

暴露底层对象供高级场景使用(如注册完成回调)。

Method getContents

public function getContents ( ) : string

Method getMetadata

public function getMetadata ( mixed $key ) : mixed

Method getSize

public function getSize ( ) : ?int

Method isReadable

public function isReadable ( ) : bool

Method isSeekable

public function isSeekable ( ) : bool

Method isWritable

public function isWritable ( ) : bool

Method read

public function read ( mixed $length ) : string

Method rewind

public function rewind ( ) : void

Method seek

public function seek ( mixed $offset , mixed $whence ) : void

Method tell

public function tell ( ) : int

Method toString

public function toString ( ) : string

Method write

public function write ( mixed $string ) : int

Copyright 2022 the Swow contributors