Constants

CONTENT_TYPE_JSON

CONTENT_TYPE_JSON

CONTENT_TYPE_UTF8

CONTENT_TYPE_UTF8

Properties

$url

$url : 

Type

$function

$function : 

Type

$content

$content : 

Type

$compression

$compression : 

Type

$contentType

$contentType : 

Type

$headers

$headers : 

Type

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(  $maniaControl,   $url) 

Parameters

$maniaControl
$url

getData()

getData(integer  $keepAlive) 

Carry out a GetData Request

Parameters

integer $keepAlive

postData()

postData() 

Carry out a PostData Request

setURL()

setURL(  $url) : $this

Parameters

$url

Returns

$this

setCallable()

setCallable(callable  $function) : $this

Parameters

callable $function

Returns

$this

getContent()

getContent() : mixed

Returns

mixed

setContent()

setContent(mixed  $content) : $this

Parameters

mixed $content

Returns

$this

getCompression()

getCompression() : boolean

Returns

boolean

setCompression()

setCompression(boolean  $compression) : $this

Parameters

boolean $compression

Returns

$this

getHeaders()

getHeaders() : array

Returns

array

setHeaders()

setHeaders(array  $headers) : $this

Parameters

array $headers

Returns

$this

getContentType()

getContentType() : string

Returns

string

setContentType()

setContentType(string  $contentType) : $this

Parameters

string $contentType

Returns

$this

newRequest()

newRequest(string  $url) : \cURL\Request

Create a new cURL Request for the given URL

Parameters

string $url

Returns

\cURL\Request

processRequest()

processRequest(\cURL\Request  $request) 

Processes the Request

Parameters

\cURL\Request $request