PHP Interface Phue\Transport\Adapter\AdapterInterface

Datei anzeigen Open project: sqmk/phue

Public Methods

Method Description
close ( ) Closes the connection
getContentType ( ) : string Get content type from response
getHttpStatusCode ( ) : string Get http status code from response
open ( ) Opens the connection
send ( string $address, string $method, string $body = null ) : string Sends request

Method Details

close() public method

Closes the connection
public close ( )

getContentType() public method

Get content type from response
public getContentType ( ) : string
return string Content type

getHttpStatusCode() public method

Get http status code from response
public getHttpStatusCode ( ) : string
return string Status code

open() public method

Opens the connection
public open ( )

send() public method

Sends request
public send ( string $address, string $method, string $body = null ) : string
$address string Request path
$method string Request method
$body string Body data
return string Result