Class FetchRequest
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
A sent HTTP request with separate completion and success tasks.
public sealed class FetchRequestProperties
Completed
Completes with the response for every status code.
public Task<FetchResult> Completed { get; }Property Value
Succeeded
Completes with the response only for a success status code; otherwise throws FetchFailedException.
public Task<FetchResult> Succeeded { get; }Property Value
Methods
GetAwaiter()
Allows awaiting the request and throws when the response status is unsuccessful.
public TaskAwaiter<FetchResult> GetAwaiter()