|
The EventHttpRequest classIntroductionRepresents an HTTP request. Class synopsis
EventHttpRequest
class EventHttpRequest
{
/* Constants */
const
int
EventHttpRequest::CMD_GET = 1;
const
int
EventHttpRequest::CMD_POST = 2;
const
int
EventHttpRequest::CMD_HEAD = 4;
const
int
EventHttpRequest::CMD_PUT = 8;
const
int
EventHttpRequest::CMD_DELETE = 16;
const
int
EventHttpRequest::CMD_OPTIONS = 32;
const
int
EventHttpRequest::CMD_TRACE = 64;
const
int
EventHttpRequest::CMD_CONNECT = 128;
const
int
EventHttpRequest::CMD_PATCH = 256;
const
int
EventHttpRequest::INPUT_HEADER = 1;
const
int
EventHttpRequest::OUTPUT_HEADER = 2;
/* Methods */
public
bool addHeader(
string
$key
,
string
$value
,
int
$type
)public
void cancel()
public
void clearHeaders()
public
void closeConnection()
public
__construct(
callable
$callback
,
mixed
$data
= null
)public
void findHeader(
string
$key
,
string
$type
)public
void free()
public
EventBufferEvent closeConnection()
public
void getCommand()
public
EventHttpConnection closeConnection()
public
string getHost()
public
EventBuffer getInputBuffer()
public
array getInputHeaders()
public
EventBuffer getOutputBuffer()
public
void getOutputHeaders()
public
int getResponseCode()
public
string getUri()
public
void removeHeader(
string
$key
,
string
$type
)public
void sendError(
int
$error
,
string
$reason
= null
)public
void sendReply(
int
$code
,
string
$reason
,
EventBuffer
$buf
= ?)public
void sendReplyChunk(
EventBuffer
$buf
)public
void sendReplyEnd()
public
void sendReplyStart(
int
}$code
,
string
$reason
)Predefined Constants
|