PHP Interface Icicle\Http\Message\Request

Inheritance: extends Icicle\Http\Message\Message
Afficher le fichier Open project: icicleio/http Interface Usage Examples

Méthodes publiques

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

Method Details

getCookie() public méthode

public getCookie ( string $name ) : Icicle\Http\Message\Cookie\Cookie | null
$name string
Résultat Icicle\Http\Message\Cookie\Cookie | null

getCookies() public méthode

public getCookies ( ) : array
Résultat array

getHeader() public méthode

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

getHeaderAsArray() public méthode

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

getHeaders() public méthode

Same as Message::getHeaders(), except the Host header will always be set based on the URI.
public getHeaders ( ) : array
Résultat array

getMethod() public méthode

Returns the request method.
public getMethod ( ) : string
Résultat string

getRequestTarget() public méthode

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
Résultat Icicle\Http\Message\Uri

getUri() public méthode

Returns the request URI.
public getUri ( ) : Icicle\Http\Message\Uri
Résultat Icicle\Http\Message\Uri

hasCookie() public méthode

public hasCookie ( string $name ) : boolean
$name string
Résultat boolean

withCookie() public méthode

public withCookie ( string $name, string $value ) : Icicle\Http\Message\Request
$name string
$value string
Résultat Icicle\Http\Message\Request

withMethod() public méthode

Returns a new instance with the given request method.
public withMethod ( string $method ) : Icicle\Http\Message\Request
$method string
Résultat Icicle\Http\Message\Request

withRequestTarget() public méthode

Returns a new instance with the given request target.
public withRequestTarget ( string $target ) : Icicle\Http\Message\Request
$target string
Résultat Icicle\Http\Message\Request

withUri() public méthode

Returns a new instance with the given URI.
public withUri ( Icicle\Http\Message\Uri $uri ) : Icicle\Http\Message\Request
$uri Icicle\Http\Message\Uri
Résultat Icicle\Http\Message\Request

withoutCookie() public méthode

public withoutCookie ( string $name ) : Icicle\Http\Message\Request
$name string
Résultat Icicle\Http\Message\Request