You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actions edited this page Mar 29, 2026
·
1 revision
Interface StreamFactoryInterface.
Extends the PSR-17 StreamFactoryInterface with additional functionality for creating streams from payloads.
Implementations of this interface MUST be capable of generating standard PSR-7 streams as well as payload-aware streams.
Full name: \FastForward\Http\Message\Factory\StreamFactoryInterface
Parent interfaces:
StreamFactoryInterface
Methods
createStreamFromPayload
Creates a new stream containing the JSON-encoded representation of the provided payload.
The returned stream MUST implement PayloadStreamInterface and MUST be readable and seekable.
The payload MUST be JSON-encodable and MUST NOT contain resource types.