Default message body implementation #1

Closed
opened 2026-04-26 08:53:02 +02:00 by c.fahner · 1 comment
Owner

The Message interface requires a $body property of the type Stringable&Traversable. Currently the library does not provide a default implementation for this property, requiring every project to create their own (very similar) implementations.

This issue introduces a public MessageBody class in the Base namespace that accepts any iterable<Stringable|string> and does not try to avoid Generator's being unwound twice.

The `Message` interface requires a `$body` property of the type `Stringable&Traversable`. Currently the library does not provide a default implementation for this property, requiring every project to create their own (very similar) implementations. This issue introduces a public `MessageBody` class in the `Base` namespace that accepts any `iterable<Stringable|string>` and does not try to avoid `Generator`'s being unwound twice.
c.fahner added this to the v0.2 milestone 2026-04-26 08:53:02 +02:00
c.fahner removed this from the v0.2 milestone 2026-04-26 08:57:05 +02:00
Author
Owner

Superseded by slendium/http#2.

Superseded by slendium/http#2.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slendium/http#1
No description provided.