PHP Class HTTPResponse

Inheritance: extends Object
Exibir arquivo Open project: imastersdev/correios Class Usage Examples

Public Methods

Method Description
getContent ( ) : string
getContentLength ( ) : integer
getContentType ( ) : string
getHeader ( string $name ) : string
getHeaderDate ( string $name ) : integer
getHeaderInt ( string $name ) : integer
getStatusCode ( ) : integer
getStatusMessage ( ) : string
hasResponseHeader ( string $name ) : boolean
setRawResponse ( string $response, CookieManager $cookieManager = null )

Method Details

getContent() public method

public getContent ( ) : string
return string

getContentLength() public method

public getContentLength ( ) : integer
return integer

getContentType() public method

public getContentType ( ) : string
return string

getHeader() public method

public getHeader ( string $name ) : string
$name string Nome do campo de cabeçalho.
return string O valor do campo ou NULL se não estiver existir.

getHeaderDate() public method

public getHeaderDate ( string $name ) : integer
$name string Nome do campo de cabeçalho.
return integer UNIX Timestamp ou NULL se não estiver definido.

getHeaderInt() public method

public getHeaderInt ( string $name ) : integer
$name string Nome do campo de cabeçalho.
return integer

getStatusCode() public method

public getStatusCode ( ) : integer
return integer

getStatusMessage() public method

public getStatusMessage ( ) : string
return string

hasResponseHeader() public method

public hasResponseHeader ( string $name ) : boolean
$name string Nome do cabeçalho
return boolean

setRawResponse() public method

public setRawResponse ( string $response, CookieManager $cookieManager = null )
$response string Toda a resposta da requisição
$cookieManager CookieManager