PHP 클래스 Icicle\Http\Driver\Reader\Http1Reader

파일 보기 프로젝트 열기: icicleio/http

공개 메소드들

메소드 설명
__construct ( array $options = [] )
readRequest ( Icicle\Socket\Socket $socket, float $timeout ) : Generator
readResponse ( Icicle\Socket\Socket $socket, float $timeout ) : Generator

보호된 메소드들

메소드 설명
filterHost ( string $host ) : string
findHost ( array $headers ) : string
readHeaders ( Icicle\Stream\Structures\Buffer $buffer, Icicle\Socket\Socket $socket, float $timeout ) : Generator

메소드 상세

__construct() 공개 메소드

public __construct ( array $options = [] )
$options array

filterHost() 보호된 메소드

protected filterHost ( string $host ) : string
$host string
리턴 string

findHost() 보호된 메소드

protected findHost ( array $headers ) : string
$headers array
리턴 string

readHeaders() 보호된 메소드

protected readHeaders ( Icicle\Stream\Structures\Buffer $buffer, Icicle\Socket\Socket $socket, float $timeout ) : Generator
$buffer Icicle\Stream\Structures\Buffer
$socket Icicle\Socket\Socket
$timeout float
리턴 Generator

readRequest() 공개 메소드

public readRequest ( Icicle\Socket\Socket $socket, float $timeout ) : Generator
$socket Icicle\Socket\Socket
$timeout float
리턴 Generator

readResponse() 공개 메소드

public readResponse ( Icicle\Socket\Socket $socket, float $timeout ) : Generator
$socket Icicle\Socket\Socket
$timeout float
리턴 Generator