Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
2ad83a4
avoid keeping header objects in memory when not necessary
Baptouuuu Apr 19, 2025
eb9ea72
remove AcceptRangesValue
Baptouuuu Apr 19, 2025
6865242
remove AgeValue
Baptouuuu Apr 19, 2025
7eb11bb
remove AuthorizationValue
Baptouuuu Apr 19, 2025
3e4471e
remove ContentEncodingValue
Baptouuuu Apr 19, 2025
b54117f
CS
Baptouuuu Apr 19, 2025
0e27dce
remove ContentLengthValue
Baptouuuu Apr 19, 2025
87cc881
make ContentLocation constructor private
Baptouuuu Apr 19, 2025
c1df49b
remove ContentRangeValue
Baptouuuu Apr 19, 2025
9005a23
remove ContentTypeValue
Baptouuuu Apr 19, 2025
4b5a2a6
remove reference to undefined method
Baptouuuu Apr 19, 2025
2a25646
make Date constructor private
Baptouuuu Apr 19, 2025
54c7f97
make Expires constructor private
Baptouuuu Apr 19, 2025
019329b
remove HostValue
Baptouuuu Apr 19, 2025
2495d88
make IfModifiedSince constructor private
Baptouuuu Apr 19, 2025
613c22e
make IfUnmodifiedSince constructor private
Baptouuuu Apr 19, 2025
c246505
make LastModified constructor private
Baptouuuu Apr 19, 2025
6f1f475
remove DateValue
Baptouuuu Apr 19, 2025
52765c3
remove LocationValue
Baptouuuu Apr 19, 2025
ae676ef
remove RangeValue
Baptouuuu Apr 19, 2025
5495394
remove ReferrerValue
Baptouuuu Apr 19, 2025
d2e66e4
add Header\Provider
Baptouuuu Apr 19, 2025
879f721
make all custom headers implement Header\Provider
Baptouuuu Apr 19, 2025
915009c
make Header a final class
Baptouuuu Apr 19, 2025
e79f7f4
give access to the providers in Headers::foreach()
Baptouuuu Apr 19, 2025
0db005c
rename Provider to Custom
Baptouuuu Apr 20, 2025
3b985a8
make Accept constructor private
Baptouuuu Apr 20, 2025
8356b74
make AcceptCharset constructor private
Baptouuuu Apr 20, 2025
b2a0c70
make AcceptEncoding constructor private
Baptouuuu Apr 20, 2025
f98fefa
make AcceptLanguage constructor private
Baptouuuu Apr 20, 2025
f7da644
make Allow constructor private
Baptouuuu Apr 20, 2025
c983cfa
add missing models
Baptouuuu Apr 20, 2025
c83a63b
make ContentLanguage constructor private
Baptouuuu Apr 20, 2025
0107c54
make Link constructor private
Baptouuuu Apr 20, 2025
179eb5c
make WWWAuthenticate constructor private
Baptouuuu Apr 20, 2025
d8fa47f
make CacheControl constructor private
Baptouuuu Apr 20, 2025
e421000
replace CacheControlValue implementations by dedicated classes
Baptouuuu Apr 20, 2025
63c90a3
make Cookie constructor private
Baptouuuu Apr 20, 2025
60b5e2b
make SetCookie constructor private
Baptouuuu Apr 20, 2025
c9cc7e8
make Value a final class
Baptouuuu Apr 20, 2025
b3be9c4
enforce the allowed parameters in a SetCookie header
Baptouuuu Apr 20, 2025
53a8e6b
remove unused class
Baptouuuu Apr 20, 2025
5f80239
close down the Quality object
Baptouuuu Apr 20, 2025
35f852f
make Boundary no longer implement Parameter
Baptouuuu Apr 20, 2025
399eafd
make Parameter a final class
Baptouuuu Apr 20, 2025
e117dd0
fix public constructor
Baptouuuu Apr 20, 2025
f5c1b88
make Header constructor private
Baptouuuu Apr 20, 2025
1e10924
make Value constructor private
Baptouuuu Apr 20, 2025
e2d3d5b
make Parameter constructor private
Baptouuuu Apr 20, 2025
470f96b
do not keep parameter string representation in memory
Baptouuuu Apr 20, 2025
2ce7c39
fix sending boundary
Baptouuuu Apr 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

## [Unreleased]

### Added

- `Innmind\Http\Header\Custom`
- `Innmind\Http\Header\Accept\MediaType`
- `Innmind\Http\Header\Accept\Charset`
- `Innmind\Http\Header\Accept\Encoding`
- `Innmind\Http\Header\Accept\Language`
- `Innmind\Http\Header\Content\Language`
- `Innmind\Http\Header\Link\Relationship`
- `Innmind\Http\Header\WWWAuthenticate\Challenge`
- `Innmind\Http\Header\CacheControl\Directive`
- `Innmind\Http\Header\CacheControl\MaxAge`
- `Innmind\Http\Header\CacheControl\MaxStale`
- `Innmind\Http\Header\CacheControl\MinimumFresh`
- `Innmind\Http\Header\CacheControl\NoCache`
- `Innmind\Http\Header\CacheControl\PrivateCache`
- `Innmind\Http\Header\CacheControl\SharedMaxAge`
- `Innmind\Http\Header\SetCookie\Directive`
- `Innmind\Http\Header\SetCookie\Domain`
- `Innmind\Http\Header\SetCookie\Expires`
- `Innmind\Http\Header\SetCookie\MaxAge`
- `Innmind\Http\Header\SetCookie\Path`

### Changed

- Requires `innmind/filesystem:~8.0`
Expand All @@ -17,6 +40,45 @@
- `Innmind\Http\Factory\HeadersFactory` is now a final class
- Classes in `Innmind\Http\Factory\Header\` are now internal
- `Innmind\Http\Header::values()` now returns an `Innmind\Immutable\Sequence` to allow for ordered values
- `Innmind\Http\Header\AcceptRanges` constructor is now private, use `::of()` or `::maybe()` named constructors
- `Innmind\Http\Header\Age` constructor is now private, use `::of()` or `::maybe()` named constructors
- `Innmind\Http\Header\Authorization` constructor is now private, use `::of()` or `::maybe()` named constructors
- `Innmind\Http\Header\ContentEncoding` constructor is now private, use `::of()` or `::maybe()` named constructors
- `Innmind\Http\Header\ContentLength` constructor is now private, use `::of()` or `::maybe()` named constructors
- `Innmind\Http\Header\ContentLocation` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\ContentRange` constructor is now private, use `::of()` or `::maybe()` named constructors
- `Innmind\Http\Header\ContentType` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Date` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Expires` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Host` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\IfModifiedSince` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\IfUnmodifiedSince` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\LastModified` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Location` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Range` constructor is now private, use `::of()` or `::maybe()` named constructors
- `Innmind\Http\Header\Referrer` constructor is now private, use `::of()` named constructor
- All custom headers now implements `Innmind\Http\Header\Custom`
- `Innmind\Http\Header` is now a final class
- `Innmind\Http\Header\Value` is now a final class
- `Innmind\Http\Header\Accept` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\AcceptCharset` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\AcceptEncoding` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Allow` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Allow::of()` now expects `Innmind\Http\Method` values
- `Innmind\Http\Header\ContentLanguage` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Link` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\WWWAuthenticate` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\CacheControl` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Cookie` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\SetCookie` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Parameter\Quality` constructor is now private, use `::of()` named constructor
- `Innmind\Http\Header\Parameter\Quality` no longer implements `Innmind\Http\Header\Parameter`
- `Innmind\Http\Header\Parameter\Quality::of()` now returns `self`
- `Innmind\Http\Header\ContentType\Boundary` no longer implements `Innmind\Http\Header\Parameter`
- `Innmind\Http\Header\Parameter` is now a final class
- `Innmind\Http\Header` constructor is now private, use `::of` named constructor
- `Innmind\Http\Header\Value` constructor is now private, use `::of` named constructor
- `Innmind\Http\Header\Parameter` constructor is now private, use `::of` named constructor

### Removed

Expand All @@ -28,6 +90,42 @@
- `Innmind\Http\Factory\ServerRequest\ServerRequestFactory`
- `Innmind\Http\Factory\Header\HeadersFactory`
- `Innmind\Http\Factory\HeaderFactory`
- `Innmind\Http\Header\AcceptRangesValue`
- `Innmind\Http\Header\AgeValue`
- `Innmind\Http\Header\AuthorizationValue`
- `Innmind\Http\Header\ContentEncodingValue`
- `Innmind\Http\Header\ContentLengthValue`
- `Innmind\Http\Header\ContentRangeValue`
- `Innmind\Http\Header\ContentTypeValue`
- `Innmind\Http\Header\HostValue`
- `Innmind\Http\Header\DateValue`
- `Innmind\Http\Header\LocationValue`
- `Innmind\Http\Header\RangeValue`
- `Innmind\Http\Header\ReferrerValue`
- `Innmind\Http\Header\AcceptValue`
- `Innmind\Http\Header\AcceptCharsetValue`
- `Innmind\Http\Header\AcceptEncodingValue`
- `Innmind\Http\Header\AcceptLanguageValue`
- `Innmind\Http\Header\AllowValue`
- `Innmind\Http\Header\ContentLanguageValue`
- `Innmind\Http\Header\LinkValue`
- `Innmind\Http\Header\WWWAuthenticateValue`
- `Innmind\Http\Header\CacheControlValue`
- `Innmind\Http\Header\CacheControlValue\MaxAge`
- `Innmind\Http\Header\CacheControlValue\MaxStale`
- `Innmind\Http\Header\CacheControlValue\MinimumFresh`
- `Innmind\Http\Header\CacheControlValue\NoCache`
- `Innmind\Http\Header\CacheControlValue\PrivateCache`
- `Innmind\Http\Header\CacheControlValue\SharedMaxAge`
- `Innmind\Http\Header\CookieValue`
- `Innmind\Http\Header\CookieParameter\Domain`
- `Innmind\Http\Header\CookieParameter\Expires`
- `Innmind\Http\Header\CookieParameter\HttpOnly`
- `Innmind\Http\Header\CookieParameter\MaxAge`
- `Innmind\Http\Header\CookieParameter\Path`
- `Innmind\Http\Header\CookieParameter\SameSite`
- `Innmind\Http\Header\CookieParameter\Secure`
- `Innmind\Http\Header\Parameter\NullParameter`

### Fixed

Expand Down
Loading