Fast Forward HTTP Message
Fast Forward HTTP Message is a focused companion library for PSR-7 applications.
It builds on top of nyholm/psr7
and adds practical response classes, payload-aware
JSON helpers, and small HTTP utility enums that remove repetitive string handling
from application code.
This package is a good fit when you want to:
- return JSON, HTML, text, empty, or redirect responses quickly;
- keep JSON payloads accessible after they have been encoded into a body stream;
- centralize HTTP header parsing and negotiation logic;
- use typed HTTP helpers without replacing your existing PSR-7 stack.
Useful Links
Documentation Map
- Getting Started for installation and a first working example.
- Usage for scenario-based guides and response-specific pages.
- Advanced Topics for integration, customization, and troubleshooting.
- API Reference for the public API, interfaces, enums, and helpers.
- Links Index for project links, dependencies, standards, and coverage.
Contents:
- Getting Started
- Usage
- Advanced Topics
- API Reference
- Links Index
-
FAQ
- What PHP version do I need?
- Is this a full PSR-7 implementation?
- Which response should I start with?
- How do I return HTTP 201, 202, or another non-default status?
- How do I change a JSON payload after creating the response?
- What is the difference between JsonResponse and JsonStream?
- What happens if my payload cannot be encoded as JSON?
- Can I use this package with any framework?
- Does the package include a service provider or PSR-17 factories?
- Can I extend the built-in response classes?
- How do I parse Authorization headers safely?
- How do I decide whether to serve HTML or JSON?
- How do I know whether a client accepts a compressed response?
- Can RedirectResponse be used with relative URLs?
- Compatibility