PHP Class Ergo\Http\RequestFactory

Inheritance: implements Ergo\SingletonFactory
Afficher le fichier Open project: 99designs/ergo Class Usage Examples

Méthodes publiques

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

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

Constructor
public __construct ( $server )

clear() public méthode

* (non-phpdoc)
public clear ( )

create() public méthode

public create ( ) : Request
Résultat Request

setSchemeHeader() public méthode

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