Class RequesterExtensions
- Namespace
- AngleSharp.Io
- Assembly
- AngleSharp.dll
Useful extensions for IRequester objects.
public static class RequesterExtensions
- Inheritance
-
RequesterExtensions
- Inherited Members
Methods
FetchWithCorsAsync(IResourceLoader, CorsRequest)
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 IDownload FetchWithCorsAsync(this IResourceLoader loader, CorsRequest cors)
Parameters
loader
IResourceLoaderThe resource loader to use.
cors
CorsRequestThe CORS request to issue.
Returns
- IDownload
The active download.
IsRedirected(HttpStatusCode)
Checks if the status code corresponds to a redirected response.
public static bool IsRedirected(this HttpStatusCode status)
Parameters
status
HttpStatusCodeThe given status code.
Returns
- bool
True if the status code hints redirection, otherwise false.