HttpResponseMessage クラス
定義
ステータス コードとデータを含む HTTP 応答メッセージを表します。Represents a HTTP response message including the status code and data.
public ref class HttpResponseMessage : IDisposable
public class HttpResponseMessage : IDisposable
type HttpResponseMessage = class
interface IDisposable
Public Class HttpResponseMessage
Implements IDisposable
- 継承
-
HttpResponseMessage
- 実装
注釈
を取得する一般的な方法は HttpResponseMessage 、メソッドの1つ HttpClient.SendAsync(HttpRequestMessage) です。A common way to get an HttpResponseMessage is from one of the HttpClient.SendAsync(HttpRequestMessage) methods.
コンストラクター
HttpResponseMessage() |
HttpResponseMessage クラスの新しいインスタンスを初期化します。Initializes a new instance of the HttpResponseMessage class. |
HttpResponseMessage(HttpStatusCode) |
特定の StatusCode を使用して、HttpResponseMessage クラスの新しいインスタンスを初期化します。Initializes a new instance of the HttpResponseMessage class with a specific StatusCode. |
プロパティ
Content |
HTTP 応答メッセージの内容を取得または設定します。Gets or sets the content of a HTTP response message. |
Headers |
HTTP 応答ヘッダーのコレクションを取得します。Gets the collection of HTTP response headers. |
IsSuccessStatusCode |
HTTP 応答が成功したかどうかを示す値を取得します。Gets a value that indicates if the HTTP response was successful. |
ReasonPhrase |
ステータス コードと共にサーバーが通常送信する理由語句を取得または設定します。Gets or sets the reason phrase which typically is sent by servers together with the status code. |
RequestMessage |
この応答メッセージを引き起こした要求メッセージを取得または設定します。Gets or sets the request message which led to this response message. |
StatusCode |
HTTP 応答のステータス コードを取得または設定します。Gets or sets the status code of the HTTP response. |
TrailingHeaders |
HTTP 応答に含まれている末尾のヘッダーのコレクションを取得します。Gets the collection of trailing headers included in an HTTP response. |
Version |
HTTP メッセージ バージョンを取得または設定します。Gets or sets the HTTP message version. |
メソッド
Dispose() |
HttpResponseMessage が使用しているアンマネージ リソースを解放し、アンマネージ リソースを破棄します。Releases the unmanaged resources and disposes of unmanaged resources used by the HttpResponseMessage. |
Dispose(Boolean) |
HttpResponseMessage が使用しているアンマネージド リソースを解放します。オプションとして、マネージド リソースを破棄することもできます。Releases the unmanaged resources used by the HttpResponseMessage and optionally disposes of the managed resources. |
EnsureSuccessStatusCode() |
HTTP 応答の IsSuccessStatusCode プロパティが |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. |
拡張メソッド
ToMessage(HttpResponseMessage) |
Message インスタンスから HttpResponseMessage インスタンスを作成します。Creates a Message instance from an HttpResponseMessage instance. |