# RequestSection

> Typed view-model for one name/value section rendered in 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) › RequestSection

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

Typed view-model for one name/value section rendered in the Request panel detail view.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-caption"></span>`$caption` readonly constructor | `string` | Section heading shown at the top of the rendered table. | `RequestSection` |
| [`$entries`](#property-entries) readonly constructor | `array<int\|string, mixed>` | Name → value entries that populate the table rows. | `RequestSection` |
| <span id="property-filterable"></span>`$filterable` readonly constructor | `bool` | `true` when the renderer should emit a search input next to the caption and wrap the table in a filter target, so the developer can narrow long tables (Session, Server, Headers). Default: `false`. | `RequestSection` |
| <span id="property-id"></span>`$id` readonly constructor | `string` | Stable semantic identifier used when a composed Request view needs to move or omit this section. Default: `''`. | `RequestSection` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a name/value section for the Request panel. | `RequestSection` |

## Property details

### $entries <span id="property-entries"></span>

```php
public readonly array<int|string, mixed> $entries
```

Name → value entries that populate the table rows.

Keys are coerced to strings during rendering and values are dumped via [`Dump::asString()`](/docs/extensions/debug-core/reference/helper/dump/index.md#method-asString)
for a stable, syntax-aware presentation.

## Method details

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

```php
public function __construct(string $caption, array $entries, bool $filterable = false, string $id = '')
```

Creates a name/value section for the Request panel.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$caption` | `string` |  |
| `$entries` | `array` |  |
| `$filterable` | `bool` |  |
| `$id` | `string` |  |