Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Version: Available or changed with runtime version 15.0.
Represents a test HTTP response message including the status code and data.
Instance methods
The following methods are available on instances of the TestHttpResponseMessage data type.
Method name | Description |
---|---|
Content() | Gets the contents of the HTTP response. |
Headers() | Gets the HTTP response's HTTP headers. |
HttpStatusCode([Integer]) | Gets or sets the status code of the HTTP response. |
IsBlockedByEnvironment([Boolean]) | Gets or sets a value that indicates if the HTTP response is the result of the environment blocking an outgoing HTTP request. |
IsSuccessfulRequest([Boolean]) | Gets or sets a value that indicates if the HTTP request was successful or not. By setting this value it is possible to mock the return value of the HttpClient call. |
ReasonPhrase(Text) | Gets or sets the reason phrase which typically is sent by servers together with the status code. |