HTTP Stream Collector
Captures HTTP/HTTPS stream wrapper operations — requests made via file_get_contents('http://...'), fopen('https://...'), and similar PHP stream functions.

What It Captures
| Field | Description |
|---|---|
operation | Stream operation type (open, read, stat, etc.) |
uri | HTTP/HTTPS URL accessed |
args | Operation arguments |
Data Schema
Operations are grouped by type:
{
"open": [
{"uri": "https://api.example.com/data", "args": {"mode": "r"}}
]
}Summary (shown in debug entry list):
{
"http_stream": {
"open": 2,
"read": 2
}
}Contract
use AppDevPanel\Kernel\Collector\Stream\HttpStreamCollector;
$collector->collect(
operation: 'open',
path: 'https://api.example.com/data',
args: ['mode' => 'r'],
);INFO
HttpStreamCollectorAppDevPanel\Kernel\Collector\Stream\HttpStreamCollectorCollects Http Stream data during application lifecycle. implements SummaryCollectorInterfaceAppDevPanel\Kernel\Collector\SummaryCollectorInterfaceSummary data collector responsibility is to collect summary data for a collector. Summary is used to display a list of previous requests and select one to display full info. Its data set is specific to the list and is reduced compared to full data collected in {@see CollectorInterface}.. Supports configurable ignore patterns.
How It Works
The collector uses a PHP stream wrapper proxy (HttpStreamProxyAppDevPanel\Kernel\Collector\Stream\HttpStreamProxyDecorator proxy for Http Stream. Intercepts calls and forwards data to collectors.) that registers itself for the http:// and https:// protocols. Stream operations via native PHP functions are intercepted. Paths matching excludePaths patterns are ignored.
WARNING
This collector only captures HTTP requests made via PHP stream functions (file_get_contents, fopen). For PSR-18 HTTP client calls, use the HTTP Client Collector.
Debug Panel
- Operation list — HTTP stream operations with URLs
- Combined with Filesystem — displayed together with FilesystemStreamCollector
AppDevPanel\Kernel\Collector\Stream\FilesystemStreamCollectorCollects Filesystem Stream data during application lifecycle. under the "I/O" sidebar item