Skip to content

Stage 0.2.0

Choose a tag to compare

@skyyware skyyware released this 17 Oct 11:14
· 1 commit to main since this release

Direct requests and native HTTP requests now expose the same lowercase header
names. This fixes adapter calls that supplied Authorization while the
application read authorization. Request and Response share syntax and
duplicate-name validation, and file responses use the canonical request map.

Install with composer require skyyware/stage:^0.2.

Upgrade from 0.1: read request headers with lowercase keys. Invalid names,
control characters in values except horizontal tabs, and duplicate names
regardless of case now fail during Request construction. Native malformed
input becomes HTTP 400. Invalid header maps no longer reach the Range fallback;
valid multiple-range values still return the full file. Header values,
constructor arguments, routing, permissions, and response framing remain
unchanged. No production dependency was added.

Validation: PHPStan max, PHPUnit with 57 tests and 371 assertions, and Deptrac
with no violations or uncovered classes. Regression cases failed before the
change. An isolated CMS workflow confirms case-independent authentication,
scoped writes, stale-revision rejection, and denied publication without
changing saved content. File transfer checks include real HTTP and bounded
memory. No application deployment or model calls are part of this release.

PHP and the web server parse wire headers before Stage receives them. Stage
validates the resulting map; it does not replace that parser or authentication.