The EventHttpRequest class

(PECL event >= 1.4.0-beta)

Giriş

Represents an HTTP request.

Sınıf Sözdizimi

EventHttpRequest {
/* Constants */
const integer CMD_GET = 1 ;
const integer CMD_POST = 2 ;
const integer CMD_HEAD = 4 ;
const integer CMD_PUT = 8 ;
const integer CMD_DELETE = 16 ;
const integer CMD_OPTIONS = 32 ;
const integer CMD_TRACE = 64 ;
const integer CMD_CONNECT = 128 ;
const integer CMD_PATCH = 256 ;
const integer INPUT_HEADER = 1 ;
const integer OUTPUT_HEADER = 2 ;
/* Yöntemler */
public addHeader ( string $key , string $value , int $type ) : bool
public cancel ( void ) : void
public clearHeaders ( void ) : void
public closeConnection ( void ) : void
public __construct ( callable $callback [, mixed $data = NULL ] )
public findHeader ( string $key , string $type ) : void
public free ( void ) : void
public getCommand ( void ) : void
public getHost ( void ) : string
public getInputBuffer ( void ) : EventBuffer
public getInputHeaders ( void ) : array
public getOutputBuffer ( void ) : EventBuffer
public getOutputHeaders ( void ) : void
public getResponseCode ( void ) : int
public getUri ( void ) : string
public removeHeader ( string $key , string $type ) : void
public sendError ( int $error [, string $reason = NULL ] ) : void
public sendReply ( int $code , string $reason [, EventBuffer $buf ] ) : void
public sendReplyChunk ( EventBuffer $buf ) : void
public sendReplyEnd ( void ) : void
public sendReplyStart ( int $code , string $reason ) : void
}

Öntanımlı Sabitler

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.

İçindekiler