PHP Class Swoole\Http\ExtServer

Inheritance: implements Swoole\IFace\Http
Datei anzeigen Open project: matyhtf/swoole_framework

Public Properties

Property Type Description
$charest
$document_root
$expire_time
$finish
$gzip_extname
$request swoole_http_request
$response swoole_http_response

Protected Properties

Property Type Description
$config
$mimes
$types

Public Methods

Method Description
__clean ( )
__construct ( $config )
assign ( Request $request ) 将swoole扩展产生的请求对象数据赋值给框架的Request对象
doStatic ( swoole_http_request $req, swoole_http_response $resp )
finish ( $content = null )
getRequestBody ( )
header ( $k, $v )
onRequest ( swoole_http_request $req, swoole_http_response $resp )
redirect ( $url, $mode = 301 )
response ( $content )
setcookie ( $name, $value = null, $expire = null, $path = '/', $domain = null, $secure = null, $httponly = null )
status ( $code )

Method Details

__clean() public method

public __clean ( )

__construct() public method

public __construct ( $config )

assign() public method

将swoole扩展产生的请求对象数据赋值给框架的Request对象
public assign ( Request $request )
$request Swoole\Request

doStatic() public method

public doStatic ( swoole_http_request $req, swoole_http_response $resp )
$req swoole_http_request
$resp swoole_http_response

finish() public method

public finish ( $content = null )

getRequestBody() public method

public getRequestBody ( )

header() public method

public header ( $k, $v )

onRequest() public method

public onRequest ( swoole_http_request $req, swoole_http_response $resp )
$req swoole_http_request
$resp swoole_http_response

redirect() public method

public redirect ( $url, $mode = 301 )

response() public method

public response ( $content )

setcookie() public method

public setcookie ( $name, $value = null, $expire = null, $path = '/', $domain = null, $secure = null, $httponly = null )

status() public method

public status ( $code )

Property Details

$charest public_oe property

public $charest

$config protected_oe property

protected $config

$document_root public_oe property

public $document_root

$expire_time public_oe property

public $expire_time

$finish public_oe property

public $finish

$gzip_extname static_oe public_oe property

static public $gzip_extname

$mimes protected_oe property

protected $mimes

$request public_oe property

public swoole_http_request $request
return swoole_http_request

$response public_oe property

public swoole_http_response $response
return swoole_http_response

$types protected_oe property

protected $types