class UnitRequest

Base class for requests

Methods

__construct(string $socket, string $address)

Constructor

void
setMethod(string $method)

Set HTTP method

void
setData(mixed $data)

Setup data

send($uri, $associative = true)

Send request

Details

at line 26
__construct(string $socket, string $address)

Constructor

Parameters

string $socket
string $address

at line 41
void setMethod(string $method)

Set HTTP method

Parameters

string $method

Return Value

void

at line 51
void setData(mixed $data)

Setup data

Parameters

mixed $data

Return Value

void

at line 61
send($uri, $associative = true)

Send request

Parameters

$uri
$associative

Exceptions

UnitException