Delegate HttpHeaderTransformCallback
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
Sets the headers of an HTTP request before the library sends it.
public delegate void HttpHeaderTransformCallback(ResourceKind kind, string url, HttpHeaderTransformResponse outResponse)
Parameters
kindResourceKind- Sets the headers of an HTTP request before the library sends it.
urlstring- Sets the headers of an HTTP request before the library sends it.
outResponseHttpHeaderTransformResponse- Sets the headers of an HTTP request before the library sends it.
Remarks
url is the request's URL after any resource transform. The
request waits for the callback, so return quickly.
Runs on a library thread.
Returning succeeds. Throwing a MaplibreException whose status
is not Status.Ok fails the call with that status. Any other exception
fails it with Status.NativeError and is reported to
MaplibreNative.CallbackException.
See mln_http_header_transform_callback in the C API reference.