« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 287 for Response (0.001 sec.)
The Swoole\Http\Response class | PHP 8.3 8056
The Swoole\Http\Response class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Http\Response { /* メソッド */ public function cookie ( string $name , string $value = ? , string $expires = ? , string $path = ? , string $domain = ? , ... ublic function status ( string $http_code ): ReturnType public function write ( string $content ): void } 目次 Swoole\Http\Response::cookie — Set the cookies of the HTTP response. Swoole\Http\Response::__destruct — Destruct the HTTP response. Swoole\Http ... \Response::end — Send data for the HTTP request and finish the response. Swoole\Http\Response::gzip — Enable the gzip of response co ... ntent. Swoole\Http\Response::header — Set the HTTP response headers. Swoole\Http\Response::initHeader — Init the HTTP response header. Swoole\Http\Res ...
https://man.mtool.work/php/8.3/class.swoole-http-response.html
Yaf_Response_Abstract::response — レスポンスを送信する | PHP 8.3 7807
Yaf_Response_Abstract::response (Yaf >=1.0.0) Yaf_Response_Abstract::response — レスポンスを送信する 説明 public function Yaf_Response_Abstract::response (): void レスポンスを送信します。 パラメータ この関数にはパラメータはありません。 戻り ... 値 例 例1 Yaf_Response_Abstract::response() の例 <?php $response = new Yaf_Response_Http (); $response -> setBody ( "Hello" )-> setBody ( " World ... " , "footer" ); $response -> response (); ?> 上の例の出力は、 たとえば以下のようになります。 Hello World 参考 Yaf_Response_Abstract::setBody() - コン ... テンツをレスポンスに設定する Yaf_Response_Abstract::clearBody() - 既存のすべてのレスポンス本文を破棄します 他のマニュアルの関連ページ FastAPI Response class FastAPI ...
https://man.mtool.work/php/8.3/yaf-response-abstract.response.html
Yaf_Response_Abstract::getBody — コンテンツを取得する | PHP 8.3 7711
Yaf_Response_Abstract::getBody (Yaf >=1.0.0) Yaf_Response_Abstract::getBody — コンテンツを取得する 説明 public function Yaf_Response_Abstract::getBody ( string $key = ? ): mixed コンテンツを取得します。 パラメータ key コンテンツのキー。キー ... を指定しない場合は、Yaf_Response_Abstract::DEFAULT_BODY を使います。 null を渡すと、すべてのコンテンツを配列で返します。 注意 : このパラメータは 2.2.0 で導 ... 入されました。 戻り値 例 例1 Yaf_Response_Abstract::getBody() の例 <?php $response = new Yaf_Response_Http (); $response -> setBody ( "Hello" )-> setBody ( " World" ... , "footer" ); var_dump ( $response -> getBody ()); // デフォルト var_dump ( $response -> getBody ( Yaf_Response_Abstract :: DEFAULT_BODY )); // 上の行と同じ ...
https://man.mtool.work/php/8.3/yaf-response-abstract.getbody.html
Yaf_Response_Abstract クラス | PHP 8.3 7663
Yaf_Response_Abstract クラス (Yaf >=1.0.0) はじめに クラス概要 class Yaf_Response_Abstract { /* 定数 */ const string DEFAULT_BODY = "content" ; /* プロパティ */ protected $ _header ; protected $ _body ; protected $ _sendheader ; /* メソッド ... public function getHeader (): void public function prependBody ( string $content , string $key = ? ): bool public function response (): void protected function setAllHeaders (): void public function setBody ( string $content , string $key = ? ): bool pub ... bool private function __toString (): string public function __destruct () } プロパティ _header _body _sendheader 目次 Yaf_Response_Abstract::appendBody — レスポンス本文に追記する Yaf_Response_Abstract::clearBody — 既存のすべてのレスポンス本文を破棄します ... Yaf_Response_Abstract::clearHeaders — すべてのヘッダをクリアする Yaf_Response_Abstract::__construct — The __construct purpose Yaf_Respo ...
https://man.mtool.work/php/8.3/class.yaf-response-abstract.html
Yaf_Response_Abstract::setBody — コンテンツをレスポンスに設定する | PHP 8.3 7634
Yaf_Response_Abstract::setBody (Yaf >=1.0.0) Yaf_Response_Abstract::setBody — コンテンツをレスポンスに設定する 説明 public function Yaf_Response_Abstract::setBody ( string $content , string $key = ? ): bool コンテンツをレスポンスに設定します ... 。 パラメータ body コンテンツ文字列。 key コンテンツのキー。キーを指定しない場合は、 Yaf_Response_Abstract::DEFAULT_BODY を使います。 注意 : このパラメータは 2.2.0 で導入されました。 戻り値 例 例1 Yaf_Response_Abstract:: ... setBody() の例 <?php $response = new Yaf_Response_Http (); $response -> setBody ( "Hello" )-> setBody ( " World" , "footer" ); print_r ( $response ); ech ... o $response ; ?> 上の例の出力は、 たとえば以下のようになります。 Yaf_Response_Http Object ( [_header:protected] => Array ( ) [_body:pr ...
https://man.mtool.work/php/8.3/yaf-response-abstract.setbody.html
Yaf_Plugin_Abstract クラス | PHP 8.3 7557
Yaf_Plugin_Abstract クラス (Yaf >=1.0.0) はじめに プラグインを使えば、フレームワークの拡張やカスタマイズを簡単に行えます。 プラグインは、クラスとして定義します。 実際のクラスの定義はコンポーネントによって異なります。 このインターフェイスを実 ... ins/ */ class TestPlugin extends Yaf_Plugin_Abstract { public function routerStartup ( Yaf_Request_Abstract $request , Yaf_Response_Abstract $response ) { /* before router in this hook, user can do some url rewrite */ var_dump ( "routerStartup" ); } publ ... ic function routerShutdown ( Yaf_Request_Abstract $request , Yaf_Response_Abstract $response ) { /* router complete in this hook, user can do login check */ var_dump ( "routerShutdown" ); } public ... function dispatchLoopStartup ( Yaf_Request_Abstract $request , Yaf_Response_Abstract $response ) { var_dump ( "dispatchLoopStartup" ); } public function preDispatch ( Yaf_Request_Abstract $request , ...
https://man.mtool.work/php/8.3/class.yaf-plugin-abstract.html
Yaf_Dispatcher::setResponse — Set the response object | PHP 8.3 7509
Yaf_Dispatcher::setResponse (Yaf >=3.2.2) Yaf_Dispatcher::setResponse — Set the response object 説明 public function Yaf_Dispatcher::setResponse ( Yaf_Response_Abstract $response ): ? Yaf_Dispatcher Set the response object used by the dispa ... tcher. This allows using a custom response implementation instead of the built-in ones. パラメータ response A Yaf_Response_Abstract instance. 戻り値 Returns the Yaf_ ... Dispatcher object itself on success, or null if the application is not initialized. 例 例1 Yaf_Dispatcher::setResponse() example <?php class ApiResponse extends Yaf_Response_Http { public function response () { header ( "Content-Type: applic ... ation/json" ); parent :: response (); } } $app = new Yaf_Application ( dirname ( __FILE__ ) . "/conf/application.ini" ); Yaf_Dispatcher :: getInstance ()-> ...
https://man.mtool.work/php/8.3/yaf-dispatcher.setresponse.html
Yaf_Response_Abstract::appendBody — レスポンス本文に追記する | PHP 8.3 7490
Yaf_Response_Abstract::appendBody (Yaf >=1.0.0) Yaf_Response_Abstract::appendBody — レスポンス本文に追記する 説明 public function Yaf_Response_Abstract::appendBody ( string $content , string $key = ? ): bool 既存のコンテンツブロックの後にコ ... ンテンツを追加します。 パラメータ body コンテンツ文字列。 key コンテンツのキー。キーを指定しない場合は、 Yaf_Response_Abstract::DEFAULT_BODY を使います。 注意 : このパラメータは 2.2.0 で導入されました。 戻り値 bool 例 例1 Yaf_Response_Abstr ... act::appendBody() の例 <?php $response = new Yaf_Response_Http (); $response -> setBody ( "Hello" )-> appendBody ( " World" ); echo $response ; ?> 上の例の出力は ... 、 たとえば以下のようになります。 Hello World 参考 Yaf_Config_Ini Yaf_Response_Abstract::getBody() - コンテンツを取得する Yaf_Response_Abstract::setBody() - コンテンツをレスポンスに設定する Yaf_Respons ...
https://man.mtool.work/php/8.3/yaf-response-abstract.appendbody.html
Yaf_Response_Abstract::prependBody — The prependBody purpose | PHP 8.3 7490
Yaf_Response_Abstract::prependBody (Yaf >=1.0.0) Yaf_Response_Abstract::prependBody — The prependBody purpose 説明 public function Yaf_Response_Abstract::prependBody ( string $content , string $key = ? ): bool 既存のコンテンツブロックの前に ... コンテンツを追加します。 パラメータ body コンテンツ文字列。 key コンテンツのキー。キーを指定しない場合は、 Yaf_Response_Abstract::DEFAULT_BODY を使います。 注意 : このパラメータは 2.2.0 で導入されました。 戻り値 bool 例 例1 Yaf_Response_Abstr ... act::prependBody() の例 <?php $response = new Yaf_Response_Http (); $response -> setBody ( "World" )-> prependBody ( "Hello " ); echo $response ; ?> 上の例の出力は ... 、 たとえば以下のようになります。 Hello World 参考 Yaf_Response_Abstract::getBody() - コンテンツを取得する Yaf_Response_Abstract::setBody() - コンテンツをレスポンスに設定する Yaf_Respons ...
https://man.mtool.work/php/8.3/yaf-response-abstract.prependbody.html
Yaf_Dispatcher::getResponse — Get the response object | PHP 8.3 7366
Yaf_Dispatcher::getResponse (Yaf >=1.0.0) Yaf_Dispatcher::getResponse — Get the response object 説明 public function Yaf_Dispatcher::getResponse (): ? Yaf_Response_Abstract Retrieve the Yaf_Response_Abstract instance used by the dispatcher. ... パラメータ この関数にはパラメータはありません。 戻り値 The Yaf_Response_Abstract instance, or null if the application is not initialized. 例 例1 Yaf_Dispatcher::getResponse() example <?php class ... CharsetPlugin extends Yaf_Plugin_Abstract { public function preDispatch ( Yaf_Request_Abstract $request , Yaf_Response_Abstract $response ) { // Same response object as the one held by the dispatcher Yaf_Dispatcher :: getInstance ()-> getRes ... ponse ()-> setHeader ( "Content-Type" , "text/html; charset=utf-8" ); } } ?> 参考 Yaf_Dispatcher::setResponse() - Set the response object Yaf_Response_Abstract 他のマニュアルの関連ページ FastAPI Response class FastAPI Response FastA ...
https://man.mtool.work/php/8.3/yaf-dispatcher.getresponse.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT