mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
* Allows headers without whitespace after colon. * Makes headers faster. * Optimizes header splitting. * Formatting.
15 lines
324 B
PHP
15 lines
324 B
PHP
<?php
|
|
|
|
require_once __DIR__.'/_executor.php';
|
|
|
|
return function () {
|
|
header('Foo: bar');
|
|
header('Foo2: bar2');
|
|
header('Foo3:bar3'); // no space after colon (also valid, not recommended)
|
|
header('Invalid');
|
|
header('I: ' . ($_GET['i'] ?? 'i not set'));
|
|
http_response_code(201);
|
|
|
|
echo 'Hello';
|
|
};
|