RequesterExtensions
Useful extensions for IRequester objects.
public static Task<IResponse> FetchAsync(this IResourceLoader loader, ResourceRequest request, CancellationToken cancel)
Performs a fetch from the given URI by using an asynchronous
request.
public static Task<IResponse> FetchWithCorsAsync(this IResourceLoader loader, ResourceRequest request, CorsSetting setting, OriginBehavior behavior, CancellationToken cancel)
Performs a potentially CORS-enabled fetch from the given URI by
using an asynchronous GET request. For more information see:
http://www.w3.org/TR/html5/infrastructure.html#potentially-cors-enabled-fetch
public static Task<IResponse> LoadAsync(this IEnumerable<IRequester> requesters, IRequest request, IEventAggregator events, CancellationToken cancel)
Loads the given URI by using an asynchronous request.
public static Task<IResponse> SendAsync(this IDocumentLoader loader, DocumentRequest request, CancellationToken cancel)
Loads the given URI by using an asynchronous request with the given
method and body.