PHP Class Gpf_Net_Http_Request

Inheritance: extends Gpf_Object
Afficher le fichier Open project: fubralimited/php-oara Class Usage Examples

Méthodes publiques

Méthode Description
addQueryParam ( $name, $value )
getBody ( )
getCookies ( )
getCookiesHeader ( )
getCookiesString ( )
getFragment ( )
getHeader ( string $name ) : string Get header value
getHeaders ( ) : array Return array of headers
getHost ( )
getHttpPassword ( )
getHttpUser ( )
getMaxTimeout ( )
getMethod ( ) : string get the request method
getPath ( )
getPort ( )
getProxyPassword ( )
getProxyPort ( )
getProxyServer ( )
getProxyUser ( )
getQuery ( )
getScheme ( )
getUri ( )
getUrl ( )
setBody ( $body )
setCookies ( $cookies )
setHeader ( string $name, string $value ) Set header value
setHttpPassword ( $pass )
setHttpUser ( $user )
setMaxTimeout ( $timeout )
setMethod ( string $method ) Set if request method is GET or POST
setProxyServer ( string $server, string $port, string $user, string $password ) In case request should be redirected through proxy server, set proxy server settings This function should be called after function setHost !!!
setUrl ( $url )
toString ( )

Private Methods

Méthode Description
initHeaders ( )
parseUrl ( )

Method Details

addQueryParam() public méthode

public addQueryParam ( $name, $value )

getBody() public méthode

public getBody ( )

getCookies() public méthode

public getCookies ( )

getCookiesHeader() public méthode

public getCookiesHeader ( )

getCookiesString() public méthode

public getCookiesString ( )

getFragment() public méthode

public getFragment ( )

getHeader() public méthode

Get header value
public getHeader ( string $name ) : string
$name string
Résultat string

getHeaders() public méthode

Return array of headers
public getHeaders ( ) : array
Résultat array

getHost() public méthode

public getHost ( )

getHttpPassword() public méthode

public getHttpPassword ( )

getHttpUser() public méthode

public getHttpUser ( )

getMaxTimeout() public méthode

public getMaxTimeout ( )

getMethod() public méthode

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

getPath() public méthode

public getPath ( )

getPort() public méthode

public getPort ( )

getProxyPassword() public méthode

public getProxyPassword ( )

getProxyPort() public méthode

public getProxyPort ( )

getProxyServer() public méthode

public getProxyServer ( )

getProxyUser() public méthode

public getProxyUser ( )

getQuery() public méthode

public getQuery ( )

getScheme() public méthode

public getScheme ( )

getUri() public méthode

public getUri ( )

getUrl() public méthode

public getUrl ( )

setBody() public méthode

public setBody ( $body )

setCookies() public méthode

public setCookies ( $cookies )

setHeader() public méthode

Set header value
public setHeader ( string $name, string $value )
$name string
$value string

setHttpPassword() public méthode

public setHttpPassword ( $pass )

setHttpUser() public méthode

public setHttpUser ( $user )

setMaxTimeout() public méthode

public setMaxTimeout ( $timeout )

setMethod() public méthode

Set if request method is GET or POST
public setMethod ( string $method )
$method string possible values are POST or GET

setProxyServer() public méthode

In case request should be redirected through proxy server, set proxy server settings This function should be called after function setHost !!!
public setProxyServer ( string $server, string $port, string $user, string $password )
$server string
$port string
$user string
$password string

setUrl() public méthode

public setUrl ( $url )

toString() public méthode

public toString ( )