PHP Class Gpf_Net_Http_Request

Inheritance: extends Gpf_Object
Datei anzeigen Open project: fubralimited/php-oara Class Usage Examples

Public Methods

Method 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

Method Description
initHeaders ( )
parseUrl ( )

Method Details

addQueryParam() public method

public addQueryParam ( $name, $value )

getBody() public method

public getBody ( )

getCookies() public method

public getCookies ( )

getCookiesHeader() public method

public getCookiesHeader ( )

getCookiesString() public method

public getCookiesString ( )

getFragment() public method

public getFragment ( )

getHeader() public method

Get header value
public getHeader ( string $name ) : string
$name string
return string

getHeaders() public method

Return array of headers
public getHeaders ( ) : array
return array

getHost() public method

public getHost ( )

getHttpPassword() public method

public getHttpPassword ( )

getHttpUser() public method

public getHttpUser ( )

getMaxTimeout() public method

public getMaxTimeout ( )

getMethod() public method

get the request method
public getMethod ( ) : string
return string

getPath() public method

public getPath ( )

getPort() public method

public getPort ( )

getProxyPassword() public method

public getProxyPassword ( )

getProxyPort() public method

public getProxyPort ( )

getProxyServer() public method

public getProxyServer ( )

getProxyUser() public method

public getProxyUser ( )

getQuery() public method

public getQuery ( )

getScheme() public method

public getScheme ( )

getUri() public method

public getUri ( )

getUrl() public method

public getUrl ( )

setBody() public method

public setBody ( $body )

setCookies() public method

public setCookies ( $cookies )

setHeader() public method

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

setHttpPassword() public method

public setHttpPassword ( $pass )

setHttpUser() public method

public setHttpUser ( $user )

setMaxTimeout() public method

public setMaxTimeout ( $timeout )

setMethod() public method

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

setProxyServer() public method

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 method

public setUrl ( $url )

toString() public method

public toString ( )