# RequestSectionRenderer

> Renders the Request panel detail view.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Request](/docs/extensions/debug-core/reference/panel/request/index.md) › RequestSectionRenderer

| final class | `PHPForge\Debug\Panel\Request\RequestSectionRenderer` |
| --- | --- |
| Source | [`src/Panel/Request/RequestSectionRenderer.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Request/RequestSectionRenderer.php#L19) |

Renders the Request panel detail view.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`renderDisclosureSection()`](#method-renderDisclosureSection) static | 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. | `RequestSectionRenderer` |
| [`renderHero()`](#method-renderHero) static | Renders the hero header: method pill, URL, status pill, and the `ip` / `time` / `durationMs` / flags meta strip. | `RequestSectionRenderer` |
| [`renderMethodPill()`](#method-renderMethodPill) static | Renders the HTTP method pill carrying the shared semantic verb hue. | `RequestSectionRenderer` |
| [`renderSection()`](#method-renderSection) static | Renders a single name/value section as `<header>` + `<table>`, or as a collapsed disclosure when the section has no entries. | `RequestSectionRenderer` |
| [`renderTabs()`](#method-renderTabs) static | Renders the full tab strip plus the per-tab content panels, wrapping the sections returned by [`renderSection()`](/docs/extensions/debug-core/reference/panel/request/requestsectionrenderer/index.md#method-renderSection). | `RequestSectionRenderer` |

## Method details

### renderDisclosureSection() <span id="method-renderDisclosureSection"></span>

```php
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**

| Parameter | Type | Description |
| --- | --- | --- |
| `$section` | [`RequestSection`](/docs/extensions/debug-core/reference/panel/request/requestsection/index.md) |  |

**Returns**

`string`

### renderHero() <span id="method-renderHero"></span>

```php
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**

| Parameter | Type | Description |
| --- | --- | --- |
| `$hero` | [`RequestHero`](/docs/extensions/debug-core/reference/panel/request/requesthero/index.md) |  |

**Returns**

`string`

### renderMethodPill() <span id="method-renderMethodPill"></span>

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

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

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$method` | `string` | Captured HTTP method. |

**Returns**

[`UIAwesome\Html\Phrasing\Span`](/docs/extensions/html/reference/phrasing/span/index.md): Method pill element.

### renderSection() <span id="method-renderSection"></span>

```php
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**

| Parameter | Type | Description |
| --- | --- | --- |
| `$section` | [`RequestSection`](/docs/extensions/debug-core/reference/panel/request/requestsection/index.md) |  |

**Returns**

`string`

### renderTabs() <span id="method-renderTabs"></span>

```php
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()`](/docs/extensions/debug-core/reference/panel/request/requestsectionrenderer/index.md#method-renderSection).

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$tabs` | `list<`[`RequestTab`](/docs/extensions/debug-core/reference/panel/request/requesttab/index.md)`>` | Tabs in display order. |

**Returns**

`string`