WebResponse
Namespace: E2E
public sealed class WebResponseA response CancellationToken) matched.
Inheritance: object
Properties
Section titled “Properties”Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Response headers, with lower-cased names.
Value: IReadOnlyDictionary<string, string>
Status
Section titled “Status”public int Status { get; }HTTP status.
Value: int
public string Url { get; }Response URL.
Value: string
Methods
Section titled “Methods”JsonAsync<T>(CancellationToken)
Section titled “JsonAsync<T>(CancellationToken)”public Task<T?> JsonAsync<T>(CancellationToken cancellationToken = default)Waits for the body as TextAsync(CancellationToken) does and deserializes it as JSON.
Type parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken |
CancellationToken |
Returns: Task<T>
TextAsync(CancellationToken)
Section titled “TextAsync(CancellationToken)”public Task<string> TextAsync(CancellationToken cancellationToken = default)Waits for the body, up to the action timeout, and reads it as text. Fails with
ACTION_FAILED when the body could not be read or did not finish in time.
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken |
CancellationToken |
Returns: Task<string>