« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 21 for setDefaultCallback (0.001 sec.)
Sets default callback to handle requests that are not caught by specific callbac... 12837
« EventHttp::setCallback EventHttp::setMaxBodySize » PHP Manual EventHttp Sets default callback to handle requests that are not caught by specific callbacks 検索 EventHttp::setDefaultCallback (PECL event >= 1.4.0-beta) EventHttp::setDefaultCallback ... lback — Sets default callback to handle requests that are not caught by specific callbacks 説明 public function EventHttp::setDefaultCallback ( string $cb , string $arg = ? ): void Sets default callback to handle requests that are not caught by specific callbacks ... ser custom data passed to the callback. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 EventHttp::setDefaultCallback() example <?php $base = new EventBase (); $http = new EventHttp ( $base ); $socket = socket_create ( AF_INET , SOCK_STREAM ... , SOL_TCP ); if (! $http -> bind ( "127.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 () ...
https://man.mtool.work/php/8.3/eventhttp.setdefaultcallback.html
Sets default callback to handle requests that are not caught by specific callbac... 12837
« EventHttp::setCallback EventHttp::setMaxBodySize » PHP Manual EventHttp Sets default callback to handle requests that are not caught by specific callbacks 検索 EventHttp::setDefaultCallback (PECL event >= 1.4.0-beta) EventHttp::setDefaultCallback ... lback — Sets default callback to handle requests that are not caught by specific callbacks 説明 public function EventHttp::setDefaultCallback ( string $cb , string $arg = ? ): void Sets default callback to handle requests that are not caught by specific callbacks ... ser custom data passed to the callback. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 EventHttp::setDefaultCallback() example <?php $base = new EventBase (); $http = new EventHttp ( $base ); $socket = socket_create ( AF_INET , SOCK_STREAM ... , SOL_TCP ); if (! $http -> bind ( "127.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 () ...
https://man.mtool.work/php/8.3/eventhttp.setdefaultcallback.html
The EventHttp class 9759
« EventDnsBase::setSearchNdots EventHttp::accept » PHP Manual Event The EventHttp class 検索 The EventHttp class (PECL event >= 1.4.0-beta) はじめに Represents HTTP server. クラス概要 final class EventHttp { /* メソッド */ public function a ... s ( int $methods ): void public function setCallback ( string $path , string $cb , string $arg = ? ): void public function setDefaultCallback ( string $cb , string $arg = ? ): void public function setMaxBodySize ( int $value ): void public function setMaxHeadersSi ... ccepted by this server, and passed to user callbacks EventHttp::setCallback — Sets a callback for specified URI EventHttp::setDefaultCallback — Sets default callback to handle requests that are not caught by specific callbacks EventHttp::setMaxBodySize — Sets maxi ... alias specified socket addServerAlias bind address port construct removeServerAlias setAllowedMethods methods setCallback setDefaultCallback setMaxBodySize setMaxHeadersSize setTimeout requests callbacks callback maximum request ...
https://man.mtool.work/php/8.3/class.eventhttp.html
Sets maximum request body size 9589
« EventHttp::setDefaultCallback EventHttp::setMaxHeadersSize » PHP Manual EventHttp Sets maximum request body size 検索 EventHttp::setMaxBodySize (PECL event >= 1.4.0-beta) EventHttp::setMaxBodySize — Sets maximum request body size 説明 pub ... - Sets maximum HTTP header size 関連キーワード: EventHttp size Sets maximum body request setMaxBodySize setMaxHeadersSize setDefaultCallback event beta bytes 参考 header ...
https://man.mtool.work/php/8.3/eventhttp.setmaxbodysize.html
Sets maximum request body size 9505
« EventHttp::setDefaultCallback EventHttp::setMaxHeadersSize » PHP Manual EventHttp Sets maximum request body size 検索 EventHttp::setMaxBodySize (PECL event >= 1.4.0-beta) EventHttp::setMaxBodySize — Sets maximum request body size 説明 pub ... s maximum HTTP header size 関連キーワード: EventHttp size Sets maximum body request setMaxBodySize setMaxHeadersSize value setDefaultCallback Search event beta function int void パラメータ bytes 戻り値 参考 ...
https://man.mtool.work/php/8.3/eventhttp.setmaxbodysize.html
Sets a callback for specified URI 9437
« EventHttp::setAllowedMethods EventHttp::setDefaultCallback » PHP Manual EventHttp Sets a callback for specified URI 検索 EventHttp::setCallback (PECL event >= 1.4.0-beta) EventHttp::setCallback — Sets a callback for specified URI 説明 pub ... ttp -> setCallback ( "/dump" , "_http_dump" , array( 4 , 8 )); $http -> setCallback ( "/about" , "_http_about" ); $http -> setDefaultCallback ( "_http_default" , "custom data value" ); $http -> bind ( "0.0.0.0" , 8010 ); $base -> loop (); ?> 上の例の出力は、 たとえ ... ば以下のようになります。 a=12 HTTP/1.0 200 OK Content-Type: text/html; charset=ISO-8859-1 Connection: close 参考 EventHttp::setDefaultCallback() - Sets default callback to handle requests that are not caught by specific callbacks 関連キーワード: http EventHttp call ... back port dump setCallback Sets requests specified path EventHttpRequest about Content setDefaultCallback Type text Connection getUri Sending reply sendReply default base setAllowedMethods Custom ...
https://man.mtool.work/php/8.3/eventhttp.setcallback.html
The EventHttp class 8845
« EventDnsBase::setSearchNdots EventHttp::accept » PHP Manual Event The EventHttp class 検索 The EventHttp class (PECL event >= 1.4.0-beta) はじめに Represents HTTP server. クラス概要 final class EventHttp { /* メソッド */ public function a ... s ( int $methods ): void public function setCallback ( string $path , string $cb , string $arg = ? ): void public function setDefaultCallback ( string $cb , string $arg = ? ): void public function setMaxBodySize ( int $value ): void public function setMaxHeadersSi ... ccepted by this server, and passed to user callbacks EventHttp::setCallback — Sets a callback for specified URI EventHttp::setDefaultCallback — Sets default callback to handle requests that are not caught by specific callbacks EventHttp::setMaxBodySize — Sets maxi ...
https://man.mtool.work/php/8.3/class.eventhttp.html
Sets a callback for specified URI 8845
« EventHttp::setAllowedMethods EventHttp::setDefaultCallback » PHP Manual EventHttp Sets a callback for specified URI 検索 EventHttp::setCallback (PECL event >= 1.4.0-beta) EventHttp::setCallback — Sets a callback for specified URI 説明 pub ... ttp -> setCallback ( "/dump" , "_http_dump" , array( 4 , 8 )); $http -> setCallback ( "/about" , "_http_about" ); $http -> setDefaultCallback ( "_http_default" , "custom data value" ); $http -> bind ( "0.0.0.0" , 8010 ); $base -> loop (); ?> 上の例の出力は、 たとえ ... ば以下のようになります。 a=12 HTTP/1.0 200 OK Content-Type: text/html; charset=ISO-8859-1 Connection: close 参考 EventHttp::setDefaultCallback() - Sets default callback to handle requests that are not caught by specific callbacks 関連キーワード: echo req http Event ...
https://man.mtool.work/php/8.3/eventhttp.setcallback.html
Makes an HTTP server accept connections on the specified socket stream or resour... 7594
« EventHttp EventHttp::addServerAlias » PHP Manual EventHttp Makes an HTTP server accept connections on the specified socket stream or resource 検索 EventHttp::accept (PECL event >= 1.2.6-beta) EventHttp::accept — Makes an HTTP server accep ... "(some-page)\n" ; echo "URI: " , $req -> getUri (), PHP_EOL ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; }); $http -> setDefaultCallback (function ( $req ) { echo "URI: " , $req -> getUri (), PHP_EOL ; $req -> sendReply ( 200 , "OK" ); echo "OK\n" ; }); $sign ...
https://man.mtool.work/php/8.3/eventhttp.accept.html
Set callback for connection close 7594
« EventHttpConnection::makeRequest EventHttpConnection::setLocalAddress » PHP Manual EventHttpConnection Set callback for connection close 検索 EventHttpConnection::setCloseCallback (PECL event >= 1.8.0) EventHttpConnection::setCloseCallbac ... rt <= 0 || $port > 65535 ) { exit( "Invalid port" ); } $base = new EventBase (); $http = new EventHttp ( $base ); $http -> setDefaultCallback ( "_http_default" , NULL ); $http -> bind ( "0.0.0.0" , $port ); $base -> loop (); ?> 関連キーワード: callback close conne ...
https://man.mtool.work/php/8.3/eventhttpconnection.setclosecallback.html
PREV 1 2 3 NEXT