class EventHttpRequest (View source)

Constants

CMD_GET

CMD_POST

CMD_HEAD

CMD_PUT

CMD_DELETE

CMD_OPTIONS

CMD_TRACE

CMD_CONNECT

CMD_PATCH

INPUT_HEADER

OUTPUT_HEADER

Methods

__construct(callable $callback, mixed $data = null)

EventHttpRequest constructor.

bool
addHeader(string $key, string $value, int $type)

No description

void
cancel()

No description

void
clearHeaders()

No description

void
closeConnection()

No description

string|null
findHeader(string $key, string $type)

No description

free()

No description

int
getCommand()

No description

getConnection()

No description

string
getHost()

No description

getInputBuffer()

No description

array
getInputHeaders()

No description

getOutputBuffer()

No description

array
getOutputHeaders()

No description

int
getResponseCode()

No description

string
getUri()

No description

bool
removeHeader(string $key, int $type)

No description

sendError(int $error, string|null $reason = null)

No description

sendReply(int $code, string $reason, EventBuffer|null $buf = null)

No description

sendReplyChunk(EventBuffer $buf)

No description

void
sendReplyEnd()

No description

void
sendReplyStart(int $code, string $reason)

No description

Details

__construct(callable $callback, mixed $data = null)

EventHttpRequest constructor.

Parameters

callable $callback
mixed $data

bool addHeader(string $key, string $value, int $type)

No description

Parameters

string $key
string $value
int $type

Return Value

bool

void cancel()

No description

Return Value

void

void clearHeaders()

No description

Return Value

void

void closeConnection()

No description

Return Value

void

string|null findHeader(string $key, string $type)

No description

Parameters

string $key
string $type

Return Value

string|null

free()

No description

int getCommand()

No description

Return Value

int

EventHttpConnection|null getConnection()

No description

Return Value

EventHttpConnection|null

string getHost()

No description

Return Value

string

EventBuffer getInputBuffer()

No description

Return Value

EventBuffer

array getInputHeaders()

No description

Return Value

array

EventBuffer getOutputBuffer()

No description

Return Value

EventBuffer

array getOutputHeaders()

No description

Return Value

array

int getResponseCode()

No description

Return Value

int

string getUri()

No description

Return Value

string

bool removeHeader(string $key, int $type)

No description

Parameters

string $key
int $type

Return Value

bool

sendError(int $error, string|null $reason = null)

No description

Parameters

int $error
string|null $reason

sendReply(int $code, string $reason, EventBuffer|null $buf = null)

No description

Parameters

int $code
string $reason
EventBuffer|null $buf

sendReplyChunk(EventBuffer $buf)

No description

Parameters

EventBuffer $buf

void sendReplyEnd()

No description

Return Value

void

void sendReplyStart(int $code, string $reason)

No description

Parameters

int $code
string $reason

Return Value

void