The EventHttpRequest class
(PECL event >= 1.4.0-beta)
Introduction
Represents an HTTP request.
Class synopsis
class EventHttpRequest {
/* Constants */
/* Methods */
}Predefined Constants
EventHttpRequest::CMD_GETGET method(command)
EventHttpRequest::CMD_POSTPOST method(command)
EventHttpRequest::CMD_HEADHEAD method(command)
EventHttpRequest::CMD_PUTPUT method(command)
EventHttpRequest::CMD_DELETEDELETE command(method)
EventHttpRequest::CMD_OPTIONSOPTIONS method(command)
EventHttpRequest::CMD_TRACETRACE method(command)
EventHttpRequest::CMD_CONNECTCONNECT method(command)
EventHttpRequest::CMD_PATCHPATCH method(command)
EventHttpRequest::INPUT_HEADERRequest input header type.
EventHttpRequest::OUTPUT_HEADERRequest output header type.
Table of Contents
- EventHttpRequest::addHeader — Adds an HTTP header to the headers of the request
- EventHttpRequest::cancel — Cancels a pending HTTP request
- EventHttpRequest::clearHeaders — Removes all output headers from the header list of the request
- EventHttpRequest::closeConnection — Closes associated HTTP connection
- EventHttpRequest::__construct — Constructs EventHttpRequest object
- EventHttpRequest::findHeader — Finds the value belonging a header
- EventHttpRequest::free — Frees the object and removes associated events
- EventHttpRequest::getBufferEvent — Returns EventBufferEvent object
- EventHttpRequest::getCommand — Returns the request command(method)
- EventHttpRequest::getConnection — Returns EventHttpConnection object
- EventHttpRequest::getHost — Returns the request host
- EventHttpRequest::getInputBuffer — Returns the input buffer
- EventHttpRequest::getInputHeaders — Returns associative array of the input headers
- EventHttpRequest::getOutputBuffer — Returns the output buffer of the request
- EventHttpRequest::getOutputHeaders — Returns associative array of the output headers
- EventHttpRequest::getResponseCode — Returns the response code
- EventHttpRequest::getUri — Returns the request URI
- EventHttpRequest::removeHeader — Removes an HTTP header from the headers of the request
- EventHttpRequest::sendError — Send an HTML error message to the client
- EventHttpRequest::sendReply — Send an HTML reply to the client
- EventHttpRequest::sendReplyChunk — Send another data chunk as part of an ongoing chunked reply
- EventHttpRequest::sendReplyEnd — Complete a chunked reply, freeing the request as appropriate
- EventHttpRequest::sendReplyStart — Initiate a chunked reply
↑ and ↓ to navigate • Enter to select • Esc to close • / to open