PHP Class Icicle\Http\Driver\Reader\Http1Reader

Show file Open project: icicleio/http

Public Methods

Method Description
__construct ( array $options = [] )
readRequest ( Icicle\Socket\Socket $socket, float $timeout ) : Generator
readResponse ( Icicle\Socket\Socket $socket, float $timeout ) : Generator

Protected Methods

Method Description
filterHost ( string $host ) : string
findHost ( array $headers ) : string
readHeaders ( Icicle\Stream\Structures\Buffer $buffer, Icicle\Socket\Socket $socket, float $timeout ) : Generator

Method Details

__construct() public method

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

filterHost() protected method

protected filterHost ( string $host ) : string
$host string
return string

findHost() protected method

protected findHost ( array $headers ) : string
$headers array
return string

readHeaders() protected method

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
return Generator

readRequest() public method

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

readResponse() public method

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