PHP Class Ergo\Http\RequestFactory

Inheritance: implements Ergo\SingletonFactory
Show file Open project: 99designs/ergo Class Usage Examples

Public Methods

Method Description
__construct ( $server ) Constructor
clear ( ) * (non-phpdoc)
create ( ) : Request
setSchemeHeader ( $header ) Sets the HTTP header to examine to determine the scheme, either http or https. E.g X-Forwarded-Proto

Private Methods

Method Description
_getBody ( ) : string
_getHeaders ( ) : array
_getPort ( )
_getRequestMethod ( ) : string
_getScheme ( )
_getSchemeHeader ( )
_getUrl ( ) ----------------------------------------
_hasRequestMethod ( ) : boolean
_uriRelativeToHost ( string $uri ) : string The path of the URI, which may or may not already be path-only.

Method Details

__construct() public method

Constructor
public __construct ( $server )

clear() public method

* (non-phpdoc)
public clear ( )

create() public method

public create ( ) : Request
return Request

setSchemeHeader() public method

Sets the HTTP header to examine to determine the scheme, either http or https. E.g X-Forwarded-Proto
public setSchemeHeader ( $header )