PHP Interface Aerys\HttpDriver

Exibir arquivo Open project: amphp/aerys

Public Methods

Method Description
filters ( InternalRequest $ireq, array $userFilters ) : array
parser ( Client $client ) : Generator Note that you *can* rely on keep-alive timeout terminating the Body with a ClientException, when no further data comes in. No need to manually handle that here.
setup ( callable $parseEmitter, callable $responseWriter )
upgradeBodySize ( InternalRequest $ireq )
writer ( InternalRequest $ireq ) : Generator

Method Details

filters() public method

public filters ( InternalRequest $ireq, array $userFilters ) : array
$ireq InternalRequest
$userFilters array
return array

parser() public method

Note that you *can* rely on keep-alive timeout terminating the Body with a ClientException, when no further data comes in. No need to manually handle that here.
public parser ( Client $client ) : Generator
$client Client
return Generator

setup() public method

public setup ( callable $parseEmitter, callable $responseWriter )
$parseEmitter callable
$responseWriter callable

upgradeBodySize() public method

public upgradeBodySize ( InternalRequest $ireq )
$ireq InternalRequest

writer() public method

public writer ( InternalRequest $ireq ) : Generator
$ireq InternalRequest
return Generator