FieldSet, Fields and Headers implementation #7

Merged
c.fahner merged 2 commits from issues/3 into main 2026-04-29 16:13:40 +02:00
Owner

Adds:

  • FieldSet
  • Fields and Headers: utility methods for consistently requesting field information from HTTP messages

Changes:

  • $headers and $trailers of the Message interface are now defined simply as iterable<Field>
Adds: * `FieldSet` * `Fields` and `Headers`: utility methods for consistently requesting field information from HTTP messages Changes: * `$headers` and `$trailers` of the `Message` interface are now defined simply as `iterable<Field>`
c.fahner added this to the v0.2 milestone 2026-04-27 16:55:16 +02:00
@ -0,0 +53,4 @@
$this->assertSame([ 'text/plain', 'text/html' ], $result);
}
public function test_getAll_shouldReturnEmptyIterable_whenFieldExists(): void {
Author
Owner

"whenFieldExists" should probably be "whenFieldDoesNotExist"

"whenFieldExists" should probably be "whenFieldDoesNotExist"
c.fahner marked this conversation as resolved
c.fahner deleted branch issues/3 2026-04-29 16:13:40 +02:00
Sign in to join this conversation.
No reviewers
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!7
No description provided.