PHP Class Ergo\Http\NullRequest

See also: http://tools.ietf.org/html/rfc2616#section-5
Show file Open project: 99designs/ergo

Public Methods

Method 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 method

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

copy() public method

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
return object

export() public method

public export ( ) : array
return array

getBody() public method

public getBody ( ) : string
return string

getHeaders() public method

public getHeaders ( ) : HeaderCollection
return HeaderCollection

getQueryString() public method

public getQueryString ( ) : QueryString
return QueryString

getRequestMethod() public method

public getRequestMethod ( ) : string
return string

getUrl() public method

public getUrl ( ) : Url
return Url