The EventHttpRequest class

(PECL event >= 1.4.0-beta)

Introduction

Represents an HTTP request.

Class synopsis

classEventHttpRequest {
constintCMD_GET = 1;
constintCMD_POST = 2;
constintCMD_HEAD = 4;
constintCMD_PUT = 8;
constintCMD_DELETE = 16;
constintCMD_OPTIONS = 32;
constintCMD_TRACE = 64;
constintCMD_CONNECT = 128;
constintCMD_PATCH = 256;
constintINPUT_HEADER = 1;
publicaddHeader(string$key, string$value, int$type): bool
publiccancel(): void
public__construct(callable$callback, mixed$data = null)
publicfindHeader(string$key, string$type): void
publicfree(): void
publicgetCommand(): void
publicgetHost(): string
publicgetUri(): string
publicremoveHeader(string$key, string$type): void
publicsendError(int$error, string$reason = null): void
publicsendReply(int$code, string$reason, EventBuffer$buf = ?): void
publicsendReplyStart(int$code, string$reason): void
}

Predefined Constants

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.

Table of Contents

To Top