No cache version.


Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

The EventHttpRequest class

(PECL event >= 1.4.0-beta)

Introduction

Represents an HTTP request.

PHP: EventHttpRequest - Manual Home of Manuel PHP  Contents Haut

Class synopsis

EventHttpRequest {
/* Constants */
const integer CMD_GET = 1 ;
const integer CMD_POST = 2 ;
const integer CMD_HEAD = 4 ;
const integer CMD_PUT = 8 ;
const integer CMD_DELETE = 16 ;
const integer CMD_OPTIONS = 32 ;
const integer CMD_TRACE = 64 ;
const integer CMD_CONNECT = 128 ;
const integer CMD_PATCH = 256 ;
const integer INPUT_HEADER = 1 ;
const integer OUTPUT_HEADER = 2 ;
/* Methods */
public addHeader ( string $key , string $value , int $type ) : bool
public cancel ( void ) : void
public clearHeaders ( void ) : void
public closeConnection ( void ) : void
public __construct ( callable $callback [, mixed $data = NULL ] )
public findHeader ( string $key , string $type ) : void
public free ( void ) : void
public getCommand ( void ) : void
public getHost ( void ) : string
public getInputBuffer ( void ) : EventBuffer
public getInputHeaders ( void ) : array
public getOutputBuffer ( void ) : EventBuffer
public getOutputHeaders ( void ) : void
public getResponseCode ( void ) : int
public getUri ( void ) : 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 ) : void
public sendReplyStart ( int $code , string $reason ) : void
}

PHP: EventHttpRequest - Manual Home of Manuel PHP  Contents Haut

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.

PHP: EventHttpRequest - Manual Home of Manuel PHP  Contents Haut

Table of Contents

Find a PHP function

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-class.eventhttprequest.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : http://php.net

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut