Struct HttpHeaderTransform
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
Headers to add to HTTP requests, for
RuntimeHandle.SetHttpHeaderTransformAsync().
public readonly record struct HttpHeaderTransform : IEquatable<HttpHeaderTransform>
- Implements
- Inherited Members
Remarks
Set either callback or rules, not both.
Runs on a library thread.
See mln_http_header_transform in the C API reference.
Constructors
HttpHeaderTransform(HttpHeaderTransformCallback?, ImmutableArray<HttpHeaderRule>)
public HttpHeaderTransform(HttpHeaderTransformCallback? Callback, ImmutableArray<HttpHeaderRule> Rules)
Parameters
CallbackHttpHeaderTransformCallbackRulesImmutableArray<HttpHeaderRule>
Properties
Callback
public HttpHeaderTransformCallback? Callback { get; init; }
Property Value
Rules
The first rule that matches a request adds its headers, and no other.
public ImmutableArray<HttpHeaderRule> Rules { get; init; }