The EventHttpRequest class

はじめに

Represents an HTTP request.

クラス概要

EventHttpRequest
class EventHttpRequest {
/* 定数 */
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;
/* メソッド */
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 )
}

定義済み定数

EventHttpRequest::CMD_GET

GET method(command)

EventHttpRequest::CMD_POST

POST method(command)

EventHttpRequest::CMD_HEAD

HEAD method(command)

EventHttpRequest::CMD_PUT

PUT method(command)

EventHttpRequest::CMD_DELETE

DELETE command(method)

EventHttpRequest::CMD_OPTIONS

OPTIONS method(command)

EventHttpRequest::CMD_TRACE

TRACE method(command)

EventHttpRequest::CMD_CONNECT

CONNECT method(command)

EventHttpRequest::CMD_PATCH

PATCH method(command)

EventHttpRequest::INPUT_HEADER

Request input header type.

EventHttpRequest::OUTPUT_HEADER

Request output header type.

目次