Event EventHttpRequest 클래스

(PECL event >= 1.4.0-beta)


소개

HTTP 요청을 나타냅니다.


클래스 개요

                  
class EventHttpRequest {

  /* Constants */
  const int CMD_GET = 1;
  const int CMD_POST = 2;
  const int CMD_HEAD = 4;
  const int CMD_PUT = 8;
  const int CMD_DELETE = 16;
  const int CMD_OPTIONS = 32;
  const int CMD_TRACE = 64;
  const int CMD_CONNECT = 128;
  const int CMD_PATCH = 256;
  const int INPUT_HEADER = 1;
  const int OUTPUT_HEADER = 2;

  /* Methods */
  public addHeader( string $key , string $value , int $type ): bool
  public cancel(): void
  public clearHeaders(): void
  public closeConnection(): void
  public __construct( callable $callback , mixed $data = null )
  public findHeader( string $key , string $type ): void
  public free(): void
  public closeConnection(): EventBufferEvent
  public getCommand(): void
  public closeConnection(): EventHttpConnection
  public getHost(): string
  public getInputBuffer(): EventBuffer
  public getInputHeaders(): array
  public getOutputBuffer(): EventBuffer
  public getOutputHeaders(): void
  public getResponseCode(): int
  public getUri(): 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
  public sendReplyStart( int $code , string $reason ): void
}
                  
                

미리 정의된 상수

EventHttpRequest::CMD_GET
GET 메소드(명령어)
EventHttpRequest::CMD_POST
POST 메소드(명령어)
EventHttpRequest::CMD_HEAD
HEAD 메소드(명령어)
EventHttpRequest::CMD_PUT
PUT 메소드(명령어)
EventHttpRequest::CMD_DELETE
DELETE 명령(메소드)
EventHttpRequest::CMD_OPTIONS
OPTIONS 메소드(명령어)
EventHttpRequest::CMD_TRACE
TRACE 메서드(명령어)
EventHttpRequest::CMD_CONNECT
CONNECT 메소드(명령어)
EventHttpRequest::CMD_PATCH
PATCH 메소드(명령어)
EventHttpRequest::INPUT_HEADER
Request input header type.
EventHttpRequest::OUTPUT_HEADER
Request output header type.

목차