\ManiaControl\FilesAsynchronousFileReader

Asynchronous File Reader

Summary

Methods
Properties
Constants
getUsageInformation()
__construct()
newRequestTest()
appendData()
loadFile()
postData()
addRequest()
No public properties found
CONTENT_TYPE_JSON
No protected methods found
No protected properties found
N/A
No private methods found
$maniaControl
$requests
N/A

Constants

CONTENT_TYPE_JSON

CONTENT_TYPE_JSON

Properties

$requests

$requests : array<mixed,\cURL\Request>

Type

array<mixed,\cURL\Request>

Methods

getUsageInformation()

getUsageInformation() 

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

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new Asynchronous File Reader Instance

Parameters

\ManiaControl\ManiaControl $maniaControl

newRequestTest()

newRequestTest(  $url) 

Parameters

$url

appendData()

appendData() 

Append available Data of active Requests

loadFile()

loadFile(string  $url, callable  $function, string  $contentType = 'UTF-8', integer  $keepAlive, array  $headers = array()) 

Load a Remote File

Parameters

string $url
callable $function
string $contentType
integer $keepAlive
array $headers

Additional Headers

postData()

postData(string  $url, callable  $function, string  $content, boolean  $compression = false, string  $contentType = 'text/xml; charset=UTF-8;', array  $headers = array()) 

Send Data via POST Method

Parameters

string $url
callable $function
string $content
boolean $compression
string $contentType
array $headers

Additional Headers

addRequest()

addRequest(\cURL\Request  $request) 

Add a Request to the queue, DO NOT CALL MANUALLY!

Parameters

\cURL\Request $request