Свойство | Тип | Описание | |
---|---|---|---|
$charest | |||
$document_root | |||
$expire_time | |||
$finish | |||
$gzip_extname | |||
$request | swoole_http_request | ||
$response | swoole_http_response |
Свойство | Тип | Описание | |
---|---|---|---|
$config | |||
$mimes | |||
$types |
Метод | Описание | |
---|---|---|
__clean ( ) | ||
__construct ( $config ) | ||
assign ( |
将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 ) |
public assign ( |
||
$request |
public doStatic ( swoole_http_request $req, swoole_http_response $resp ) | ||
$req | swoole_http_request | |
$resp | swoole_http_response |
public onRequest ( swoole_http_request $req, swoole_http_response $resp ) | ||
$req | swoole_http_request | |
$resp | swoole_http_response |
public setcookie ( $name, $value = null, $expire = null, $path = '/', $domain = null, $secure = null, $httponly = null ) |