PHP Class Ergo\Http\Request

See also: http://tools.ietf.org/html/rfc2616#section-5
Afficher le fichier Open project: 99designs/ergo Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $method, Url $url, $headers = [], $body = null )
copy ( $headers = false, $body = false, $url = false, $method = false ) : object Creates a new Request object with the parameters specified, or uses the current object's parameters
export ( ) : array
getBody ( ) : string
getHeaders ( ) : HeaderCollection
getQueryString ( ) : QueryString
getRequestMethod ( ) : string
getUrl ( ) : Url

Method Details

__construct() public méthode

public __construct ( string $method, Url $url, $headers = [], $body = null )
$method string
$url Url

copy() public méthode

Creates a new Request object with the parameters specified, or uses the current object's parameters
public copy ( $headers = false, $body = false, $url = false, $method = false ) : object
Résultat object

export() public méthode

public export ( ) : array
Résultat array

getBody() public méthode

public getBody ( ) : string
Résultat string

getHeaders() public méthode

public getHeaders ( ) : HeaderCollection
Résultat HeaderCollection

getQueryString() public méthode

public getQueryString ( ) : QueryString
Résultat QueryString

getRequestMethod() public méthode

public getRequestMethod ( ) : string
Résultat string

getUrl() public méthode

public getUrl ( ) : Url
Résultat Url