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 at the same URL with .md appended. 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

HeadContext Pennington.Head

Per-request inputs handed to every IHeadContributor.

Properties

FullPath string
required
Request path with the locale segment reattached (PathBase + Path) — the same key ContentRecordRegistry joins on (after trimming slashes).
HttpContext HttpContext
required
The active HTTP request.
Record ContentRecord
The content record resolved for this request, or null for 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; }
}