Class CustomHeaderDownloadProvider
DownloadProvider that sends HTTP request with custom header entries
Implements
Inherited Members
Namespace: GLTFast.Loading
Assembly: solution.dll
Syntax
public class CustomHeaderDownloadProvider : IDownloadProvider
Constructors
CustomHeaderDownloadProvider(HttpHeader[])
Creates a new CustomHeaderDownloadProvider with a given set of HTTP request header entries
Declaration
public CustomHeaderDownloadProvider(HttpHeader[] headers)
Parameters
Type | Name | Description |
---|---|---|
HttpHeader[] | headers | HTTP request header entries to send |
Methods
Request(Uri)
Sends a URI request
Declaration
public Task<IDownload> Request(Uri url)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | URI to request |
Returns
Type | Description |
---|---|
Task<IDownload> | Object representing the request |
RequestTexture(Uri, bool)
Sends a URI request to load a texture
Declaration
public Task<ITextureDownload> RequestTexture(Uri url, bool nonReadable)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | URI to request |
bool | nonReadable | If true, resulting texture is not CPU readable (uses less memory) |
Returns
Type | Description |
---|---|
Task<ITextureDownload> | Object representing the request |