PrefixClaim
Pennington.Artifacts
Matches any request path under Prefix, optionally narrowed to paths ending with Suffix (e.g. /search/ + .json).
Properties
PrefixUrlPath- Leading-slash path prefix, including its trailing slash (e.g.
/pdf/). Suffixstring- 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
PrefixUrlPath- Leading-slash path prefix, including its trailing slash (e.g.
/pdf/). Suffixstring- 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; }
}