PHP Class Icicle\Http\Driver\Reader\Http1Reader

Afficher le fichier Open project: icicleio/http

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

filterHost() protected méthode

protected filterHost ( string $host ) : string
$host string
Résultat string

findHost() protected méthode

protected findHost ( array $headers ) : string
$headers array
Résultat string

readHeaders() protected méthode

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
Résultat Generator

readRequest() public méthode

public readRequest ( Icicle\Socket\Socket $socket, float $timeout ) : Generator
$socket Icicle\Socket\Socket
$timeout float
Résultat Generator

readResponse() public méthode

public readResponse ( Icicle\Socket\Socket $socket, float $timeout ) : Generator
$socket Icicle\Socket\Socket
$timeout float
Résultat Generator