PHP Class Amp\Artax\Parser

Show file Open project: amphp/artax Class Usage Examples

Public Methods

Method Description
__construct ( $mode = self::MODE_REQUEST )
buffer ( $data )
enqueueResponseMethodMatch ( $method )
getBuffer ( )
getParsedMessageArray ( )
getState ( )
parse ( $data = null )
setAllOptions ( array $options )
setOption ( $option, $value )

Private Methods

Method Description
addToBody ( $data )
dechunk ( )
parseHeadersFromRaw ( $rawHeaders )
parseTrailers ( $trailers )
shiftHeadersFromMessageBuffer ( )

Method Details

__construct() public method

public __construct ( $mode = self::MODE_REQUEST )

buffer() public method

public buffer ( $data )

enqueueResponseMethodMatch() public method

public enqueueResponseMethodMatch ( $method )

getBuffer() public method

public getBuffer ( )

getParsedMessageArray() public method

getState() public method

public getState ( )

parse() public method

public parse ( $data = null )

setAllOptions() public method

public setAllOptions ( array $options )
$options array

setOption() public method

public setOption ( $option, $value )