PHP Интерфейс Icicle\Http\Message\Request

Наследование: extends Icicle\Http\Message\Message
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
getCookie ( string $name ) : Icicle\Http\Message\Cookie\Cookie | null
getCookies ( ) : array
getHeader ( string $name ) : string Same as Message::getHeader(), except if the Host header is request and previously unset, the value will be determined from the URI.
getHeaderAsArray ( string $name ) : array Same as Message::getHeader(), except if the Host header is request and previously unset, the value will be determined from the URI.
getHeaders ( ) : array Same as Message::getHeaders(), except the Host header will always be set based on the URI.
getMethod ( ) : string Returns the request method.
getRequestTarget ( ) : Icicle\Http\Message\Uri Returns the target of the request. Unless explicitly set, this will usually be the path and query portion of the URI.
getUri ( ) : Icicle\Http\Message\Uri Returns the request URI.
hasCookie ( string $name ) : boolean
withCookie ( string $name, string $value ) : Icicle\Http\Message\Request
withMethod ( string $method ) : Icicle\Http\Message\Request Returns a new instance with the given request method.
withRequestTarget ( string $target ) : Icicle\Http\Message\Request Returns a new instance with the given request target.
withUri ( Icicle\Http\Message\Uri $uri ) : Icicle\Http\Message\Request Returns a new instance with the given URI.
withoutCookie ( string $name ) : Icicle\Http\Message\Request

Описание методов

getCookie() публичный Метод

public getCookie ( string $name ) : Icicle\Http\Message\Cookie\Cookie | null
$name string
Результат Icicle\Http\Message\Cookie\Cookie | null

getCookies() публичный Метод

public getCookies ( ) : array
Результат array

getHeader() публичный Метод

Same as Message::getHeader(), except if the Host header is request and previously unset, the value will be determined from the URI.
public getHeader ( string $name ) : string
$name string
Результат string

getHeaderAsArray() публичный Метод

Same as Message::getHeader(), except if the Host header is request and previously unset, the value will be determined from the URI.
public getHeaderAsArray ( string $name ) : array
$name string
Результат array

getHeaders() публичный Метод

Same as Message::getHeaders(), except the Host header will always be set based on the URI.
public getHeaders ( ) : array
Результат array

getMethod() публичный Метод

Returns the request method.
public getMethod ( ) : string
Результат string

getRequestTarget() публичный Метод

Returns the target of the request. Unless explicitly set, this will usually be the path and query portion of the URI.
public getRequestTarget ( ) : Icicle\Http\Message\Uri
Результат Icicle\Http\Message\Uri

getUri() публичный Метод

Returns the request URI.
public getUri ( ) : Icicle\Http\Message\Uri
Результат Icicle\Http\Message\Uri

hasCookie() публичный Метод

public hasCookie ( string $name ) : boolean
$name string
Результат boolean

withCookie() публичный Метод

public withCookie ( string $name, string $value ) : Icicle\Http\Message\Request
$name string
$value string
Результат Icicle\Http\Message\Request

withMethod() публичный Метод

Returns a new instance with the given request method.
public withMethod ( string $method ) : Icicle\Http\Message\Request
$method string
Результат Icicle\Http\Message\Request

withRequestTarget() публичный Метод

Returns a new instance with the given request target.
public withRequestTarget ( string $target ) : Icicle\Http\Message\Request
$target string
Результат Icicle\Http\Message\Request

withUri() публичный Метод

Returns a new instance with the given URI.
public withUri ( Icicle\Http\Message\Uri $uri ) : Icicle\Http\Message\Request
$uri Icicle\Http\Message\Uri
Результат Icicle\Http\Message\Request

withoutCookie() публичный Метод

public withoutCookie ( string $name ) : Icicle\Http\Message\Request
$name string
Результат Icicle\Http\Message\Request