PHP 클래스 MyQEE\Server\WorkerManager

상속: extends WorkerHttp
파일 보기 프로젝트 열기: myqee/server

공개 프로퍼티들

프로퍼티 타입 설명
$prefix string 接口前缀
$prefixLength integer 前缀长度

공개 메소드들

메소드 설명
isManager ( Swoole\Http\Request $request ) : boolean 判断是否管理路径
onRequest ( Swoole\Http\Request $request, Swoole\Http\Response $response ) HTTP 接口请求处理的方法

보호된 메소드들

메소드 설명
admin ( $uri ) 执行后台页面
uri ( ) : string 返回当前URI部分(不含前缀)

메소드 상세

admin() 보호된 메소드

执行后台页面
protected admin ( $uri )
$uri

isManager() 공개 메소드

默认 /admin/ 路径开头为API路径
public isManager ( Swoole\Http\Request $request ) : boolean
$request Swoole\Http\Request
리턴 boolean

onRequest() 공개 메소드

HTTP 接口请求处理的方法
public onRequest ( Swoole\Http\Request $request, Swoole\Http\Response $response )
$request Swoole\Http\Request
$response Swoole\Http\Response

uri() 보호된 메소드

返回当前URI部分(不含前缀)
protected uri ( ) : string
리턴 string

프로퍼티 상세

$prefix 공개적으로 프로퍼티

接口前缀
public string $prefix
리턴 string

$prefixLength 공개적으로 프로퍼티

前缀长度
public int $prefixLength
리턴 integer