PHP Class Swoole\Http\Parser

显示文件 Open project: matyhtf/swoole_framework Class Usage Examples

Protected Properties

Property Type Description
$buffer

Public Methods

Method Description
parse ( $data ) : array 头部http协议
parseBody ( Request $request ) 解析Body
parseCookie ( Request $request ) 解析Cookies
parseFormData ( Request $request, $cd ) : unknown_type 解析form_data格式文件
parseHeader ( $data ) : array 头部解析
parseHeaderLine ( $headerLines ) : array 传入一个字符串或者数组
parseParams ( $str )

Method Details

parse() public method

头部http协议
public parse ( $data ) : array
$data
return array

parseBody() public method

解析Body
public parseBody ( Request $request )
$request Swoole\Request Swoole\Request

parseCookie() public method

解析Cookies
public parseCookie ( Request $request )
$request Swoole\Request Swoole\Request

parseFormData() static public method

解析form_data格式文件
static public parseFormData ( Request $request, $cd ) : unknown_type
$request Swoole\Request Swoole\Request
$cd
return unknown_type

parseHeader() static public method

头部解析
static public parseHeader ( $data ) : array
$data
return array

parseHeaderLine() static public method

传入一个字符串或者数组
static public parseHeaderLine ( $headerLines ) : array
$headerLines string/array
return array

parseParams() static public method

static public parseParams ( $str )

Property Details

$buffer protected_oe property

protected $buffer