PHP Class CURL

Mostra file Open project: imastersdev/correios Class Usage Examples

Public Methods

Method Description
__destruct ( )
addRequestHeader ( $name, $value, $override = true )
authenticate ( HTTPAuthenticator $authenticator )
close ( )
execute ( $path = '/', $method = HTTPRequestMethod::GET )
getResponse ( )
open ( HTTPConnection $httpConnection )
setParameter ( string $name, string $value )
setRequestBody ( $requestBody )

Method Details

__destruct() public method

public __destruct ( )

addRequestHeader() public method

See also: HTTPRequest::addRequestHeader()
public addRequestHeader ( $name, $value, $override = true )

authenticate() public method

See also: HTTPRequest::authenticate()
public authenticate ( HTTPAuthenticator $authenticator )
$authenticator HTTPAuthenticator

close() public method

See also: HTTPRequest::close()
public close ( )

execute() public method

See also: HTTPRequest::execute()
public execute ( $path = '/', $method = HTTPRequestMethod::GET )

getResponse() public method

See also: HTTPRequest::getResponse()
public getResponse ( )

open() public method

See also: HTTPRequest::open()
public open ( HTTPConnection $httpConnection )
$httpConnection HTTPConnection

setParameter() public method

See also: HTTPRequest::setParameter()
public setParameter ( string $name, string $value )
$name string Nome do parâmetro.
$value string Valor do parâmetro.

setRequestBody() public method

See also: HTTPRequest::setRequestBody()
public setRequestBody ( $requestBody )