Skip to content

Conversation

@luzrain
Copy link
Contributor

@luzrain luzrain commented Jun 29, 2025

Currently, PsrMessageStream is unaware of the underlying body size. However, in some cases, knowing the body size can be useful or even required. When the Content-Length header is present in the response, the body size can be determined and passed to the PsrMessageStream constructor at creation time.

@luzrain luzrain force-pushed the psr_message_stream_size branch from 34d8dfd to 13bd36a Compare August 1, 2025 12:22
@kelunik kelunik merged commit 5da55c8 into amphp:1.x Aug 27, 2025
5 checks passed
@luzrain luzrain deleted the psr_message_stream_size branch August 27, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants