Ground Sunlight

Windowsで作る - PHPプログラミングの開発環境

ユーザ用ツール

サイト用ツール


psr:psr18

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン 両方とも次のリビジョン
psr:psr18 [2020/08/28 14:17]
y2sunlight [エラー処理]
psr:psr18 [2020/08/28 16:19]
y2sunlight [RequestExceptionInterface]
行 106: 行 106:
 { {
     /**     /**
-     * Sends a PSR-7 request and returns a PSR-7 response. 
      * PSR-7リクエストを送信し、PSR-7レスポンスを返します。      * PSR-7リクエストを送信し、PSR-7レスポンスを返します。
      *      *
      * @param RequestInterface $request      * @param RequestInterface $request
-     * 
      * @return ResponseInterface      * @return ResponseInterface
      *      *
-     * @throws \Psr\Http\Client\ClientExceptionInterface If an error happens while processing the request. +     * @throws \Psr\Http\Client\ClientExceptionInterface リクエストの処理中にエラーが発生した場合。 
-                                                       リクエストの処理中にエラーが発生した場合。+                                                       
      */      */
     public function sendRequest(RequestInterface $request): ResponseInterface;     public function sendRequest(RequestInterface $request): ResponseInterface;
行 128: 行 126:
  
 /** /**
- * Every HTTP client related exception MUST implement this interface. 
  * すべてのHTTPクライアント関連の例外は、このインターフェイスを実装する必要があります。  * すべてのHTTPクライアント関連の例外は、このインターフェイスを実装する必要があります。
  */  */
行 146: 行 143:
  
 /** /**
- * Exception for when a request failed. 
  * リクエストが失敗した場合の例外。  * リクエストが失敗した場合の例外。
  *  *
- * Examples: 
-      - Request is invalid (e.g. method is missing) 
-      - Runtime request errors (e.g. the body stream is not seekable) 
  * 例:  * 例:
       -リクエストが無効です(メソッドが見つからないなど)       -リクエストが無効です(メソッドが見つからないなど)
行 159: 行 152:
 { {
     /**     /**
-     * Returns the request. 
      * リクエストを返します。      * リクエストを返します。
      *      *
-     * The request object MAY be a different object from the one passed to ClientInterface::sendRequest() 
      * リクエストオブジェクトは、ClientInterface::sendRequest()に渡されるオブジェクトとは      * リクエストオブジェクトは、ClientInterface::sendRequest()に渡されるオブジェクトとは
      * 異なるオブジェクトである可能性があります      * 異なるオブジェクトである可能性があります
psr/psr18.txt · 最終更新: 2020/09/01 11:55 by tanaka