This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

PrefixClaim Pennington.Artifacts

Matches any request path under Prefix, optionally narrowed to paths ending with Suffix (e.g. /search/ + .json).

Properties

Prefix UrlPath
Leading-slash path prefix, including its trailing slash (e.g. /pdf/).
Suffix string
Optional required path ending (e.g. .pdf); null claims the whole prefix.

Constructors

PrefixClaim

#
public PrefixClaim(UrlPath Prefix, string Suffix = null)

Matches any request path under Prefix, optionally narrowed to paths ending with Suffix (e.g. /search/ + .json).

Parameters

Prefix UrlPath
Leading-slash path prefix, including its trailing slash (e.g. /pdf/).
Suffix string
Optional required path ending (e.g. .pdf); null claims the whole prefix.

Pennington.Artifacts.PrefixClaim

namespace Pennington.Artifacts;

/// Matches any request path under Prefix, optionally narrowed to paths ending with Suffix (e.g. /search/ + .json).
public record PrefixClaim
{
    /// Leading-slash path prefix, including its trailing slash (e.g. /pdf/).
    
public UrlPath Prefix { get; set; }
/// Matches any request path under Prefix, optionally narrowed to paths ending with Suffix (e.g. /search/ + .json).
public PrefixClaim(UrlPath Prefix, string Suffix = null)
; /// Optional required path ending (e.g. .pdf); null claims the whole prefix.
public string Suffix { get; set; }
}