Table of Contents

Class ResourceResponse

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

The answer to a resource request.

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

Remarks

See mln_resource_response in the C API reference.

Properties

Bytes

The resource, for ResourceResponseStatus.Ok.

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

Property Value

ImmutableArray<byte>

ErrorMessage

A description of the error, for ResourceResponseStatus.Error.

public string ErrorMessage { get; init; }

Property Value

string

ErrorReason

Why the request failed, for ResourceResponseStatus.Error.

public ResourceErrorReason ErrorReason { get; init; }

Property Value

ResourceErrorReason

Etag

Empty when the resource has no ETag.

public string Etag { get; init; }

Property Value

string

ExpiresUnixMs

public long? ExpiresUnixMs { get; init; }

Property Value

long?

ModifiedUnixMs

public long? ModifiedUnixMs { get; init; }

Property Value

long?

MustRevalidate

Whether the library must request the resource again before it reuses this copy.

public bool MustRevalidate { get; init; }

Property Value

bool

RetryAfterUnixMs

When to retry, for ResourceResponseStatus.Error.

public long? RetryAfterUnixMs { get; init; }

Property Value

long?

Status

public ResourceResponseStatus Status { get; init; }

Property Value

ResourceResponseStatus