MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_resource_response Struct Reference

#include <runtime.h>

Data Fields

uint32_t size
mln_resource_response_fields fields
mln_resource_response_status status
mln_resource_error_reason error_reason
const uint8_t * bytes
size_t byte_count
mln_buffer_view error_message
bool must_revalidate
int64_t modified_unix_ms
int64_t expires_unix_ms
mln_buffer_view etag
int64_t retry_after_unix_ms

Detailed Description

The answer to a resource request.

Field Documentation

◆ byte_count

size_t mln_resource_response::byte_count

◆ bytes

const uint8_t* mln_resource_response::bytes

The resource, for MLN_RESOURCE_RESPONSE_STATUS_OK.

◆ error_message

mln_buffer_view mln_resource_response::error_message

A description of the error, for MLN_RESOURCE_RESPONSE_STATUS_ERROR.

◆ error_reason

mln_resource_error_reason mln_resource_response::error_reason

Why the request failed, for MLN_RESOURCE_RESPONSE_STATUS_ERROR.

◆ etag

mln_buffer_view mln_resource_response::etag

Empty when the resource has no ETag.

◆ expires_unix_ms

int64_t mln_resource_response::expires_unix_ms

◆ fields

mln_resource_response_fields mln_resource_response::fields

◆ modified_unix_ms

int64_t mln_resource_response::modified_unix_ms

◆ must_revalidate

bool mln_resource_response::must_revalidate

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

◆ retry_after_unix_ms

int64_t mln_resource_response::retry_after_unix_ms

When to retry, for MLN_RESOURCE_RESPONSE_STATUS_ERROR.

◆ size

uint32_t mln_resource_response::size

◆ status

mln_resource_response_status mln_resource_response::status

The documentation for this struct was generated from the following file: