Results of 1 - 10 of about 13 for getUri (0.002 sec.)
- EventHttpRequest::getUri — Returns the request URI | PHP 8.3 13900
- EventHttpRequest::getUri (PECL event >= 1.4.0-beta) EventHttpRequest::getUri — Returns the request URI 説明 public function EventHttpRequest::getUri (): string Returns the request URI パラメータ この関数にはパラメータはありません。 戻り値 R
...
-
https://man.mtool.work/php/8.3/eventhttprequest.geturi.html
- EventHttp::setCallback — Sets a callback for specified URI | PHP 8.3 9923
- EventHttp::setCallback (PECL event >= 1.4.0-beta) EventHttp::setCallback — Sets a callback for specified URI 説明 public function EventHttp::setCallback ( string $path , string $cb , string $arg = ? ): void Sets a callback for specified URI
... var_dump ( $data ); echo "\n===== DUMP =====\n" ; echo "Command:" , $req -> getCommand (), PHP_EOL ; echo "URI:" , $req -> getUri (), PHP_EOL ; echo "Input headers:" ; var_dump ( $req -> getInputHeaders ()); echo "Output headers:" ; var_dump ( $req -> ... echo "No more data in the buffer\n" ; } function _http_about ( $req ) { echo __METHOD__ , PHP_EOL ; echo "URI: " , $req -> getUri (), PHP_EOL ; echo "\n >> Sending reply ..." ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; } function _http_default ( ... $req , $data ) { echo __METHOD__ , PHP_EOL ; echo "URI: " , $req -> getUri (), PHP_EOL ; echo "\n >> Sending reply ..." ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; } $port = 8010 ; if ( $argc ...
-
https://man.mtool.work/php/8.3/eventhttp.setcallback.html
- EventHttp::__construct — Constructs EventHttp object (the HTTP server) | PHP 8.... 9589
- EventHttp::__construct (PECL event >= 1.2.6-beta) EventHttp::__construct — Constructs EventHttp object (the HTTP server) 説明 public function EventHttp::__construct ( EventBase $base , EventSslContext $ctx = null ) Constructs the HTTP serve
... var_dump ( $data ); echo "\n===== DUMP =====\n" ; echo "Command:" , $req -> getCommand (), PHP_EOL ; echo "URI:" , $req -> getUri (), PHP_EOL ; echo "Input headers:" ; var_dump ( $req -> getInputHeaders ()); echo "Output headers:" ; var_dump ( $req -> ... echo "No more data in the buffer\n" ; } function _http_about ( $req ) { echo __METHOD__ , PHP_EOL ; echo "URI: " , $req -> getUri (), PHP_EOL ; echo "\n >> Sending reply ..." ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; } function _http_default ( ... $req , $data ) { echo __METHOD__ , PHP_EOL ; echo "URI: " , $req -> getUri (), PHP_EOL ; echo "\n >> Sending reply ..." ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; } $port = 8010 ; if ( $argc ...
-
https://man.mtool.work/php/8.3/eventhttp.construct.html
- The EventHttpRequest class | PHP 8.3 8920
- 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
... utBuffer (): EventBuffer public function getOutputHeaders (): void public function getResponseCode (): int public function getUri (): string public function removeHeader ( string $key , string $type ): void public function sendError ( int $error , stri ... ns 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 EventHtt ...
-
https://man.mtool.work/php/8.3/class.eventhttprequest.html
- EventHttp::accept — Makes an HTTP server accept connections on the specified so... 8920
- EventHttp::accept (PECL event >= 1.2.6-beta) EventHttp::accept — Makes an HTTP server accept connections on the specified socket stream or resource 説明 public function EventHttp::accept ( mixed $socket ): bool Makes an HTTP server accept c
... ; exit( 1 ); } ++ $i ; } $http -> setCallback ( "/some-page" , function () { echo "(some-page)\n" ; echo "URI: " , $req -> getUri (), PHP_EOL ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; }); $http -> setDefaultCallback (function ( $req ) { echo "U ... RI: " , $req -> getUri (), PHP_EOL ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; }); $signal = Event :: signal ( $base , SIGINT , function () ...
-
https://man.mtool.work/php/8.3/eventhttp.accept.html
- 例 | PHP 8.3 8762
- 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove
... var_dump ( $data ); echo "\n===== DUMP =====\n" ; echo "Command:" , $req -> getCommand (), PHP_EOL ; echo "URI:" , $req -> getUri (), PHP_EOL ; echo "Input headers:" ; var_dump ( $req -> getInputHeaders ()); echo "Output headers:" ; var_dump ( $req -> ... echo "No more data in the buffer\n" ; } function _http_about ( $req ) { echo __METHOD__ , PHP_EOL ; echo "URI: " , $req -> getUri (), PHP_EOL ; echo "\n >> Sending reply ..." ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; } function _http_default ( ... $req , $data ) { echo __METHOD__ , PHP_EOL ; echo "URI: " , $req -> getUri (), PHP_EOL ; echo "\n >> Sending reply ..." ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; } $port = 8010 ; if ( $argc ...
-
https://man.mtool.work/php/8.3/event.examples.html
- EventHttpRequest::getHost — Returns the request host | PHP 8.3 8604
- EventHttpRequest::getHost (PECL event >= 1.4.0-beta) EventHttpRequest::getHost — Returns the request host 説明 public function EventHttpRequest::getHost (): string Returns the request host. パラメータ この関数にはパラメータはありません。 戻
... り値 Returns the request host. 参考 EventHttpRequest::getUri() - Returns the request URI EventHttpRequest::getCommand() - Returns the request command(method) 他のマニュアルの関連ページ ...
-
https://man.mtool.work/php/8.3/eventhttprequest.gethost.html
- EventHttpRequest::getResponseCode — Returns the response code | PHP 8.3 8604
- EventHttpRequest::getResponseCode (PECL event >= 1.4.0-beta) EventHttpRequest::getResponseCode — Returns the response code 説明 public function EventHttpRequest::getResponseCode (): int Returns the response code. パラメータ この関数にはパラ
... etCommand() - Returns the request command(method) EventHttpRequest::getHost() - Returns the request host EventHttpRequest::getUri() - Returns the request URI 他のマニュアルの関連ページ Python http.server FastAPI Response Python urllib2 FastAPI ミドルウ ...
-
https://man.mtool.work/php/8.3/eventhttprequest.getresponsecode.html
- EventHttp::addServerAlias — Adds a server alias to the HTTP server object | PHP... 8093
- EventHttp::addServerAlias (PECL event >= 1.4.0-beta) EventHttp::addServerAlias — Adds a server alias to the HTTP server object 説明 public function EventHttp::addServerAlias ( string $alias ): bool Adds a server alias to the HTTP server obj
... )) { exit( "Failed to add server alias\n" ); } $http -> setCallback ( "/about" , function( $req ) { echo "URI: " , $req -> getUri (), PHP_EOL ; $req -> sendReply ( 200 , "OK" ); }); $base -> dispatch (); ?> 参考 EventHttp::removeServerAlias() - Removes ...
-
https://man.mtool.work/php/8.3/eventhttp.addserveralias.html
- EventHttp::setDefaultCallback — Sets default callback to handle requests that a... 8093
- EventHttp::setDefaultCallback (PECL event >= 1.4.0-beta) EventHttp::setDefaultCallback — Sets default callback to handle requests that are not caught by specific callbacks 説明 public function EventHttp::setDefaultCallback ( string $cb , st
... 7.0.0.1" , 8088 )) { exit( "bind(1) failed\n" ); }; $http -> setDefaultCallback (function( $req ) { echo "URI: " , $req -> getUri (), PHP_EOL ; $req -> sendReply ( 200 , "OK" ); }); $base -> dispatch (); ?> 参考 EventHttp::setCallback() - Sets a callba ...
-
https://man.mtool.work/php/8.3/eventhttp.setdefaultcallback.html