Properties

$url

$url : string

请求地址规则

Type

string

$ignoreCase

$ignoreCase : boolean|null

忽略请求地址大小写 null-取HttpRoute中默认值 true-忽略大小写 false-严格判断

Type

boolean|null

$method

$method : string|array<mixed,string>

请求方法 必须是这些请求方法之一才可以被调用 可以是单个方法的字符串,也可以是字符串数组

Type

string|array<mixed,string>

$domain

$domain : string|array<mixed,string>

允许的域名 可以是单个域名的字符串,也可以是字符串数组,支持正则

Type

string|array<mixed,string>

$paramsGet

$paramsGet : string|array

GET参数条件 可以是单个字符串,也可以是数组 取值: id=100 必须包含id,并且值为100 id!=100 或 id<>100 必须包含id,并且值不为100 id 必须包含id参数 !id 必须不包含id参数 "id" => "\d+" 支持正则

Type

string|array

$paramsPost

$paramsPost : string|array

POST参数条件 可以是单个字符串,也可以是数组 取值: id=100 必须包含id,并且值为100 id!=100 或 id<>100 必须包含id,并且值不为100 id 必须包含id参数 !id 必须不包含id参数 "id" => "\d+" 支持正则

Type

string|array

$header

$header : string|array

请求头条件 可以是单个字符串,也可以是数组 取值: id=100 必须包含id,并且值为100 id!=100 或 id<>100 必须包含id,并且值不为100 id 必须包含id参数 !id 必须不包含id参数 "id" => "\d+" 支持正则

Type

string|array

$requestMime

$requestMime : string|array<mixed,string>

请求的mime类型判断 判断请求头中的Content-Type中是否包含这些mime类型之一 支持字符串和字符串数组

Type

string|array<mixed,string>

$responseMime

$responseMime : string|array<mixed,string>

返回的mime类型 只有当请求头Accept中包含,才可以返回 支持字符串和字符串数组

Type

string|array<mixed,string>

$defaultFieldName

$defaultFieldName : string

只传一个参数时的参数名

Type

string

$data

$data : array

数据

Type

array

Methods

__construct()

__construct(  $data = array()) 

Parameters

$data

offsetGet()

offsetGet(  $offset) 

Parameters

$offset

__wakeup()

__wakeup() 

offsetExists()

offsetExists(  $offset) 

Parameters

$offset

offsetSet()

offsetSet(  $offset,   $value) 

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset) 

Parameters

$offset

current()

current() 

key()

key() 

next()

next() 

rewind()

rewind() 

valid()

valid() 

__set()

__set(  $name,   $value) 

Parameters

$name
$value

__get()

__get(  $name) 

Parameters

$name

__isset()

__isset(  $name) 

Parameters

$name

__unset()

__unset(  $name) 

Parameters

$name

toArray()

toArray() : array

将当前对象作为数组返回

Returns

array

jsonSerialize()

jsonSerialize() : array

json 序列化

Returns

array