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

#include <runtime.h>

Data Fields

mln_http_header_transform_callback callback
mln_user_data_release release_user_data
const mln_http_header_rule * rules

Detailed Description

HTTP header transform state: a callback, or native header rules.

The struct itself is borrowed for the registering call, which copies every rule, header, and string before it returns. With a null callback, the first rule that matches a request supplies all its headers. A transform requires a callback or at least one rule; clear it through mln_runtime_clear_http_header_transform(). A rules transform carries no user_data or release_user_data.

Field Documentation

◆ callback

mln_http_header_transform_callback mln_http_header_transform::callback

The callback, or null to apply rules.

◆ release_user_data

mln_user_data_release mln_http_header_transform::release_user_data

Optional. Releases user_data exactly once for each accepted registration, after replacement, clear, or runtime teardown has retired the registration and every in-flight callback has returned.

Its threads and its handoff follow mln_resource_provider.release_user_data.

◆ rules

const mln_http_header_rule* mln_http_header_transform::rules

Header rules for a transform without a callback; empty with one.


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