« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 35 for EventHttpRequest (0.002 sec.)
The EventHttpRequest class | PHP 8.3 12984
The EventHttpRequest class (PECL event >= 1.4.0-beta) はじめに Represents an HTTP request. クラス概要 class EventHttpRequest { /* 定数 */ const int CMD_GET = 1 ; const int CMD_POST = 2 ; const int CMD_HEAD = 4 ; const int CMD_PUT = 8 ; cons ... d public function sendReplyEnd (): void public function sendReplyStart ( int $code , string $reason ): void } 定義済み定数 EventHttpRequest::CMD_GET GET method(command) EventHttpRequest::CMD_POST POST method(command) EventHttpRequest::CMD_HEAD HEAD method(comman ... d) EventHttpRequest::CMD_PUT PUT method(command) EventHttpRequest::CMD_DELETE DELETE command(method) EventHttpRequest::CMD_OPTIONS OPTIONS met ... hod(command) EventHttpRequest::CMD_TRACE TRACE method(command) EventHttpRequest::CMD_CONNECT CONNECT method(command) EventHttpRequest::CMD_PATCH PATCH m ...
https://man.mtool.work/php/8.3/class.eventhttprequest.html
Event | PHP 8.3 10884
Event はじめに This is an extension to efficiently schedule I/O, time and signal based events using the best I/O notification mechanism available for specific platform. This is a port of libevent to the PHP infrastructure. 注意 : Note, Wind ... setRetries — Sets the retry limit for the connection EventHttpConnection::setTimeout — Sets the timeout for the connection EventHttpRequest — The EventHttpRequest class EventHttpRequest::addHeader — Adds an HTTP header to the headers of the request EventHttpRequ ... est::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 to a header Eve ...
https://man.mtool.work/php/8.3/book.event.html
EventHttpRequest::__construct — Constructs EventHttpRequest object | PHP 8.3 10836
EventHttpRequest::__construct (PECL event >= 1.4.0-beta) EventHttpRequest::__construct — Constructs EventHttpRequest object 説明 public function EventHttpRequest::__construct ( callable $callback , mixed $data = null ) Constructs EventHttpRequest ... est object. パラメータ callback Gets invoked on requesting path. Should match the following prototype: function callback ( EventHttpRequest $req = null , mixed $arg = null ): void data User custom data passed to the callback. 例 例1 EventHttpRequest::__construct ... w EventBase (); $conn = new EventHttpConnection ( $base , NULL , $address , $port ); $conn -> setTimeout ( 5 ); $req = new EventHttpRequest ( "_request_handler" , $base ); $req -> addHeader ( "Host" , $address , EventHttpRequest :: OUTPUT_HEADER ); $req -> addHe ... ader ( "Content-Length" , "0" , EventHttpRequest :: OUTPUT_HEADER ); $conn -> makeRequest ( $req , EventHttpRequest :: CMD_GET , "/index.cphp" ); $base -> loop (); ?> 参考 ...
https://man.mtool.work/php/8.3/eventhttprequest.construct.html
EventHttpRequest::sendReplyStart — Initiate a chunked reply | PHP 8.3 9436
EventHttpRequest::sendReplyStart (PECL event >= 1.4.0-beta) EventHttpRequest::sendReplyStart — Initiate a chunked reply 説明 public function EventHttpRequest::sendReplyStart ( int $code , string $reason ): void Initiate a reply that uses Tr ... of the reply data is immediately available or when sending very large replies. The caller needs to supply data chunks with EventHttpRequest::sendReplyChunk() and complete the reply by calling EventHttpRequest::sendReplyEnd() . パラメータ code The HTTP response c ... ode to send. reason A brief message to send with the response code. 戻り値 値を返しません。 参考 EventHttpRequest::sendReplyChunk() - Send another data chunk as part of an ongoing chunked reply EventHttpRequest::sendReplyEnd() - Complet ...
https://man.mtool.work/php/8.3/eventhttprequest.sendreplystart.html
EventHttpRequest::getUri — Returns the request URI | PHP 8.3 9261
EventHttpRequest::getUri (PECL event >= 1.4.0-beta) EventHttpRequest::getUri — Returns the request URI 説明 public function EventHttpRequest::getUri (): string Returns the request URI パラメータ この関数にはパラメータはありません。 戻り値 R ... eturns the request URI 参考 EventHttpRequest::getCommand() - Returns the request command(method) EventHttpRequest::getHost() - Returns the request host EventHttpReques ...
https://man.mtool.work/php/8.3/eventhttprequest.geturi.html
EventHttpRequest::getResponseCode — Returns the response code | PHP 8.3 9165
EventHttpRequest::getResponseCode (PECL event >= 1.4.0-beta) EventHttpRequest::getResponseCode — Returns the response code 説明 public function EventHttpRequest::getResponseCode (): int Returns the response code. パラメータ この関数にはパラ ... メータはありません。 戻り値 Returns the response code of the request. 参考 EventHttpRequest::getCommand() - Returns the request command(method) EventHttpRequest::getHost() - Returns the request host EventHttpReques ...
https://man.mtool.work/php/8.3/eventhttprequest.getresponsecode.html
EventHttpRequest::getConnection — Returns EventHttpConnection object | PHP 8.3 8799
EventHttpRequest::getConnection (PECL event >= 1.8.0) EventHttpRequest::getConnection — Returns EventHttpConnection object 説明 public function EventHttpRequest::closeConnection (): EventHttpConnection Returns EventHttpConnection object whi ... ibevent API allows HTTP request objects to be not bound to any HTTP connection. Therefore we can't unambiguously associate EventHttpRequest with EventHttpConnection . Thus, we construct EventHttpConnection object on-the-fly. Having no information about the event ... base, DNS base and connection-close callback, we just leave these fields unset. EventHttpRequest::getConnection() method is usually useful when we need to set up a callback on connection close. See EventHttpConnection:: ... 戻り値 Returns EventHttpConnection object. 参考 EventHttpConnection::setCloseCallback() - Set callback for connection close EventHttpRequest::getBufferEvent() - Returns EventBufferEvent object 他のマニュアルの関連ページ DuckDB Connect ...
https://man.mtool.work/php/8.3/eventhttprequest.getconnection.html
EventHttpRequest::getCommand — Returns the request command(method) | PHP 8.3 8752
EventHttpRequest::getCommand (PECL event >= 1.4.0-beta) EventHttpRequest::getCommand — Returns the request command(method) 説明 public function EventHttpRequest::getCommand (): void Returns the request command, one of EventHttpRequest::CMD_ ... * constants. パラメータ この関数にはパラメータはありません。 戻り値 Returns the request command, one of EventHttpRequest::CMD_* constants. 他のマニュアルの関連ページ Python constants Python cmd ...
https://man.mtool.work/php/8.3/eventhttprequest.getcommand.html
EventHttpConnection::makeRequest — Makes an HTTP request over the specified con... 8576
EventHttpConnection::makeRequest (PECL event >= 1.4.0-beta) EventHttpConnection::makeRequest — Makes an HTTP request over the specified connection 説明 public function EventHttpConnection::makeRequest ( EventHttpRequest $req , int $type , s ... tring $uri ): bool Makes an HTTP request over the specified connection. type is one of EventHttpRequest::CMD_* constants. パラメータ req The connection object over which to send the request. type One of EventHttpRequest::CMD_* ... w EventBase (); $conn = new EventHttpConnection ( $base , NULL , $address , $port ); $conn -> setTimeout ( 5 ); $req = new EventHttpRequest ( "_request_handler" , $base ); $req -> addHeader ( "Host" , $address , EventHttpRequest :: OUTPUT_HEADER ); $req -> addHe ... ader ( "Content-Length" , "0" , EventHttpRequest :: OUTPUT_HEADER ); $conn -> makeRequest ( $req , EventHttpRequest :: CMD_GET , "/index.cphp" ); $base -> loop (); ?> 上の ...
https://man.mtool.work/php/8.3/eventhttpconnection.makerequest.html
EventHttpRequest::sendReplyEnd — Complete a chunked reply, freeing the request ... 8529
EventHttpRequest::sendReplyEnd (PECL event >= 1.4.0-beta) EventHttpRequest::sendReplyEnd — Complete a chunked reply, freeing the request as appropriate 説明 public function EventHttpRequest::sendReplyEnd (): void Complete a chunked reply, f ... reeing the request as appropriate. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 参考 EventHttpRequest::sendReplyStart() - Initiate a chunked reply EventHttpRequest::sendReplyChunk() - Send another data chunk as part of an on ...
https://man.mtool.work/php/8.3/eventhttprequest.sendreplyend.html
PREV 1 2 3 4 NEXT