(PECL event >= 1.4.0-beta)
Represents an HTTP request.
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 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.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.eventhttprequest.php