Table of Contents

Struct HttpHeaderRule

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

Headers to add to the HTTP requests whose URL matches a pattern.

public readonly record struct HttpHeaderRule : IEquatable<HttpHeaderRule>
Implements
Inherited Members

Remarks

See mln_http_header_rule in the C API reference.

Constructors

HttpHeaderRule()

public HttpHeaderRule()

HttpHeaderRule(ResourceKindFlag, UrlMatchFlag, string, ImmutableArray<HttpHeader>)

public HttpHeaderRule(ResourceKindFlag Kinds, UrlMatchFlag Flags, string Url, ImmutableArray<HttpHeader> Headers)

Parameters

Kinds ResourceKindFlag
Flags UrlMatchFlag
Url string
Headers ImmutableArray<HttpHeader>

Properties

Flags

public UrlMatchFlag Flags { get; init; }

Property Value

UrlMatchFlag

Headers

public ImmutableArray<HttpHeader> Headers { get; init; }

Property Value

ImmutableArray<HttpHeader>

Kinds

The kinds of resource that the rule covers. Zero covers every kind.

public ResourceKindFlag Kinds { get; init; }

Property Value

ResourceKindFlag

Url

public string Url { get; init; }

Property Value

string