Table of Contents

Class ResourceRequestInfo

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A request that a resource provider serves.

public sealed record ResourceRequestInfo : IEquatable<ResourceRequestInfo>
Inheritance
ResourceRequestInfo
Implements
Inherited Members

Remarks

When the cache holds an earlier copy of the resource, the prior_ fields describe it.

See mln_resource_request_info in the C API reference.

Properties

Kind

public ResourceKind Kind { get; init; }

Property Value

ResourceKind

LoadingMethod

public ResourceLoadingMethod LoadingMethod { get; init; }

Property Value

ResourceLoadingMethod

PriorData

public ImmutableArray<byte> PriorData { get; init; }

Property Value

ImmutableArray<byte>

PriorEtag

Empty when the earlier copy has no ETag.

public string PriorEtag { get; init; }

Property Value

string

PriorExpiresUnixMs

public long? PriorExpiresUnixMs { get; init; }

Property Value

long?

PriorModifiedUnixMs

public long? PriorModifiedUnixMs { get; init; }

Property Value

long?

Priority

public ResourcePriority Priority { get; init; }

Property Value

ResourcePriority

Range

The only bytes of the resource that the request wants.

public ResourceRange? Range { get; init; }

Property Value

ResourceRange?

RequestedUrl

The URL as the style names it.

public string RequestedUrl { get; init; }

Property Value

string

ResolvedUrl

The URL to load, after the library expands any shorthand in requested_url and before any resource transform. Routes match this URL.

public string ResolvedUrl { get; init; }

Property Value

string

StoragePolicy

public ResourceStoragePolicy StoragePolicy { get; init; }

Property Value

ResourceStoragePolicy

Usage

public ResourceUsage Usage { get; init; }

Property Value

ResourceUsage