Skip to content

Releases: tiny-blocks/http

v4.8.0

24 Feb 10:47
1f84af4

Choose a tag to compare

  • Added Request::method() to retrieve HTTP method as a typed Method enum.
  • Added Uri::toString() to access the complete request URI as a string.
  • Added Uri::queryParameters() with typed access to query string parameters through a new QueryParameters class.
  • Enhanced Body::from() to fall back to getParsedBody() when the stream is empty, supporting form-encoded and multipart requests.
  • Improved README with examples for accessing HTTP method, full URI, and query parameters.

v4.7.0

24 Feb 01:51
9700ecb

Choose a tag to compare

  • Added a static from method to the Responses interface and Response class that accepts any Code enum value.
  • Implemented comprehensive test coverage using a data provider pattern to test multiple status codes and body types.
  • Maintained consistency with existing API design by delegating to InternalResponse::createWithBody.

v4.6.0

13 Feb 02:28
3b1387b

Choose a tag to compare

  • Replace DecodedRequest public properties with uri() / body() accessors and update usages in tests/docs.
  • Add RouteParameterResolver to extract route params from arrays/objects/common attribute keys/direct attributes.
  • Expand test coverage for multiple framework-style route parameter formats and document the resolution order.

v4.5.0

13 Feb 01:42
bce4e88

Choose a tag to compare

  • Refactored test namespaces from TinyBlocks\Http to Test\TinyBlocks\Http for clearer separation between test and production code.
  • Moved stream-related classes from Internal\Response\Stream to Internal\Stream for better logical organization.
  • Added new Request class with fluent API for decoding PSR-7 ServerRequest objects, providing typed access to route parameters and JSON body fields with safe default values.

v4.4.0

10 Feb 01:19
57a753e

Choose a tag to compare

  • Updates tiny-blocks/mapper dependency to version 2.0.

v4.3.0

27 Jan 12:19
d684135

Choose a tag to compare

  • Add Response::unauthorized and Response::forbidden methods with interface docs and tests.
  • Refactor Stream::isWritable() for improved mode checking.
  • Remove unused bcmath extension from CI workflow.
  • Simplify infection config by removing LogicalOr mutator override.

v4.2.0

15 Jan 12:12
74aaee3

Choose a tag to compare

  • Bumps PHP requirement to 8.5 and updates related dependencies in composer.json.
  • Refactors Makefile for improved usability, adds help target, and updates Docker image.
  • Enhances CI workflow with build artifact caching and updated PHP version.
  • Cleans up .gitignore and .gitattributes for consistency.

v4.1.1

07 Jan 01:32
55b4c4a

Choose a tag to compare

  • Fixes execution of composer scripts and updates dependencies.

v4.1.0

30 Dec 12:26
9269ad8

Choose a tag to compare

  • Switch serialization support to tiny-blocks/mapper.

v4.0.2

19 Dec 14:54
eebd739

Choose a tag to compare

  • Fixes http status code message.