HeadContext Pennington.Head
Per-request inputs handed to every IHeadContributor.
Properties
FullPathstring- requiredRequest path with the locale segment reattached (
PathBase + Path) — the same keyContentRecordRegistryjoins on (after trimming slashes). HttpContextHttpContext- requiredThe active HTTP request.
RecordContentRecord- The content record resolved for this request, or
nullfor endpoint/404 pages.
Pennington.Head.HeadContext
namespace Pennington.Head;
/// Per-request inputs handed to every IHeadContributor.
public class HeadContext
{
/// Request path with the locale segment reattached (PathBase + Path) — the same key ContentRecordRegistry joins on (after trimming slashes).
public string FullPath { get; set; }
/// The active HTTP request.
public HttpContext HttpContext { get; set; }
/// The content record resolved for this request, or null for endpoint/404 pages.
public ContentRecord Record { get; set; }
}