PHP Class Swoole\Http\ExtServer

Inheritance: implements Swoole\IFace\Http
Afficher le fichier Open project: matyhtf/swoole_framework

Méthodes publiques

Свойство Type Description
$charest
$document_root
$expire_time
$finish
$gzip_extname
$request swoole_http_request
$response swoole_http_response

Protected Properties

Свойство Type Description
$config
$mimes
$types

Méthodes publiques

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

public __clean ( )

__construct() public méthode

public __construct ( $config )

assign() public méthode

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

doStatic() public méthode

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

finish() public méthode

public finish ( $content = null )

getRequestBody() public méthode

public getRequestBody ( )

header() public méthode

public header ( $k, $v )

onRequest() public méthode

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

redirect() public méthode

public redirect ( $url, $mode = 301 )

response() public méthode

public response ( $content )

setcookie() public méthode

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

status() public méthode

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

$response public_oe property

public swoole_http_response $response
Résultat swoole_http_response

$types protected_oe property

protected $types