Response Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the HTTP response from the service.
public abstract class Response : IDisposable
type Response = class
interface IDisposable
Public MustInherit Class Response
Implements IDisposable
- Inheritance
-
Response
- Implements
Constructors
Response() |
Properties
ClientRequestId |
Gets the client request id that was sent to the server as |
Content |
Gets the contents of HTTP response, if it is available. |
ContentStream |
Gets the contents of HTTP response. Returns |
Headers |
Get the HTTP response headers. |
IsError |
Indicates whether the status code of the returned response is considered an error code. |
ReasonPhrase |
Gets the HTTP reason phrase. |
Status |
Gets the HTTP status code. |
Methods
ContainsHeader(String) |
Returns |
Dispose() |
Frees resources held by this Response instance. |
EnumerateHeaders() |
Returns an iterator for enumerating HttpHeader in the response. |
FromValue<T>(T, Response) |
Creates a new instance of Response<T> with the provided value and HTTP response. |
ToString() |
Returns the string representation of this Response. |
TryGetHeader(String, String) |
Returns header value if the header is stored in the collection. If header has multiple values they are going to be joined with a comma. |
TryGetHeaderValues(String, IEnumerable<String>) |
Returns header values if the header is stored in the collection. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應