Table of Contents

Class FetchRequest

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

A sent HTTP request with separate completion and success tasks.

public sealed class FetchRequest

Properties

Completed

Completes with the response for every status code.

public Task<FetchResult> Completed { get; }

Property Value

Task<FetchResult>

Succeeded

Completes with the response only for a success status code; otherwise throws FetchFailedException.

public Task<FetchResult> Succeeded { get; }

Property Value

Task<FetchResult>

Methods

GetAwaiter()

Allows awaiting the request and throws when the response status is unsuccessful.

public TaskAwaiter<FetchResult> GetAwaiter()

Returns

TaskAwaiter<FetchResult>