class HttpResponseMessage

in global :: System . Net . Http

Represents a HTTP response message including the status code and data.


public HttpResponseMessage( HttpStatusCode statusCode )

Initializes a new instance of the class with a specific .

  • statusCode The status code of the HTTP response.

public HttpContent Content { get; set; }

Gets or sets the content of a HTTP response message.

  • Returns The content of the HTTP response message.

public HttpResponseHeaders Headers { get; }

Gets the collection of HTTP response headers.

  • Returns The collection of HTTP response headers.

public bool IsSuccessStatusCode { get; }

Gets a value that indicates if the HTTP response was successful.

  • Returns if was in the range 200-299; otherwise, .

public string ReasonPhrase { get; set; }

Gets or sets the reason phrase which typically is sent by servers together with the status code.

  • Returns The reason phrase sent by the server.

public HttpStatusCode StatusCode { get; set; }

Gets or sets the status code of the HTTP response.

  • Returns The status code of the HTTP response.

public Version Version { get; set; }

Gets or sets the HTTP message version.

  • Returns The HTTP message version. The default is 1.1.

public HttpResponseHeaders TrailingHeaders { get; }

😔 No documentation found.

public HttpResponseMessage EnsureSuccessStatusCode( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public void Dispose( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public HttpResponseMessage( )

😔 No documentation found.