Skip to content
PHP Ecosystem
Explore

RequestSectionRenderer

API reference › Debug Core › Panel › Request › RequestSectionRenderer

final classPHPForge\Debug\Panel\Request\RequestSectionRenderer
Sourcesrc/Panel/Request/RequestSectionRenderer.php

Renders the Request panel detail view.

MethodDescriptionDefined by
renderDisclosureSection() staticRenders a Request section inside the shared disclosure, opening populated sections and keeping empty ones collapsed by default. Filters remain inside the expandable body and continue targeting the section table.RequestSectionRenderer
renderHero() staticRenders the hero header: method pill, URL, status pill, and the ip / time / durationMs / flags meta strip.RequestSectionRenderer
renderMethodPill() staticRenders the HTTP method pill carrying the shared semantic verb hue.RequestSectionRenderer
renderSection() staticRenders a single name/value section as <header> + <table>, or as a collapsed disclosure when the section has no entries.RequestSectionRenderer
renderTabs() staticRenders the full tab strip plus the per-tab content panels, wrapping the sections returned by renderSection().RequestSectionRenderer
public static function renderDisclosureSection(PHPForge\Debug\Panel\Request\RequestSection $section): string

Renders a Request section inside the shared disclosure, opening populated sections and keeping empty ones collapsed by default. Filters remain inside the expandable body and continue targeting the section table.

Parameters

ParameterTypeDescription
$sectionRequestSection

Returns

string

public static function renderHero(PHPForge\Debug\Panel\Request\RequestHero $hero): string

Renders the hero header: method pill, URL, status pill, and the ip / time / durationMs / flags meta strip.

Parameters

ParameterTypeDescription
$heroRequestHero

Returns

string

public static function renderMethodPill(string $method): UIAwesome\Html\Phrasing\Span

Renders the HTTP method pill carrying the shared semantic verb hue.

Parameters

ParameterTypeDescription
$methodstringCaptured HTTP method.

Returns

UIAwesome\Html\Phrasing\Span: Method pill element.

public static function renderSection(PHPForge\Debug\Panel\Request\RequestSection $section): string

Renders a single name/value section as <header> + <table>, or as a collapsed disclosure when the section has no entries.

Parameters

ParameterTypeDescription
$sectionRequestSection

Returns

string

public static function renderTabs(list<PHPForge\Debug\Panel\Request\RequestTab> $tabs): string

Renders the full tab strip plus the per-tab content panels, wrapping the sections returned by renderSection().

Parameters

ParameterTypeDescription
$tabslist<RequestTab>Tabs in display order.

Returns

string