EVENTHTTPREQUEST(3) 1 EVENTHTTPREQUEST(3)
The EventHttpRequest class
INTRODUCTION
Represents an HTTP request.
CLASS SYNOPSIS
EventHttpRequest
EventHttpRequest
Constants
o const integer$EventHttpRequest::CMD_GET1
o const integer$EventHttpRequest::CMD_POST2
o const integer$EventHttpRequest::CMD_HEAD4
o const integer$EventHttpRequest::CMD_PUT8
o const integer$EventHttpRequest::CMD_DELETE16
o const integer$EventHttpRequest::CMD_OPTIONS32
o const integer$EventHttpRequest::CMD_TRACE64
o const integer$EventHttpRequest::CMD_CONNECT128
o const integer$EventHttpRequest::CMD_PATCH256
o const integer$EventHttpRequest::INPUT_HEADER1
o const integer$EventHttpRequest::OUTPUT_HEADER2
Methods
o public bool EventHttpRequest::addHeader (string $key, string $value, int $type)
o public void EventHttpRequest::cancel (void )
o public void EventHttpRequest::clearHeaders (void )
o public void EventHttpRequest::closeConnection (void )
o public EventHttpRequest::__construct NULL (callable $callback, [mixed $data])
o public void EventHttpRequest::findHeader (string $key, string $type)
o public void EventHttpRequest::free (void )
o public EventBufferEvent EventHttpRequest::closeConnection (void )
o public void EventHttpRequest::getCommand (void )
o public EventHttpConnection EventHttpRequest::closeConnection (void )
o public string EventHttpRequest::getHost (void )
o public EventBuffer EventHttpRequest::getInputBuffer (void )
o public array EventHttpRequest::getInputHeaders (void )
o public EventBuffer EventHttpRequest::getOutputBuffer (void )
o public void EventHttpRequest::getOutputHeaders (void )
o public int EventHttpRequest::getResponseCode (void )
o public string EventHttpRequest::getUri (void )
o public void EventHttpRequest::removeHeader (string $key, string $type)
o public void EventHttpRequest::sendError NULL (int $error, [string $reason])
o public void EventHttpRequest::sendReply (int $code, string $reason, [EventBuffer $buf])
o public void EventHttpRequest::sendReplyChunk (EventBuffer $buf)
o public void EventHttpRequest::sendReplyEnd (void )
o public void EventHttpRequest::sendReplyStart (int $code, string $reason)
PREDEFINED CONSTANTS
o EventHttpRequest::CMD_GET - GET method(command)
o EventHttpRequest::CMD_POST - POST method(command)
o EventHttpRequest::CMD_HEAD - HEAD method(command)
o EventHttpRequest::CMD_PUT - PUT method(command)
o EventHttpRequest::CMD_DELETE - DELETE command(method)
o EventHttpRequest::CMD_OPTIONS - OPTIONS method(command)
o EventHttpRequest::CMD_TRACE - TRACE method(command)
o EventHttpRequest::CMD_CONNECT - CONNECT method(command)
o EventHttpRequest::CMD_PATCH - PATCH method(command)
o EventHttpRequest::INPUT_HEADER - Request input header type.
o EventHttpRequest::OUTPUT_HEADER - Request output header type.
PHP Documentation Group EVENTHTTPREQUEST(3)