Skip to content

Refactor namespaces and add request handling classes for improved HTTP processing.#48

Merged
gustavofreze merged 2 commits intomainfrom
feature/develop
Feb 13, 2026
Merged

Refactor namespaces and add request handling classes for improved HTTP processing.#48
gustavofreze merged 2 commits intomainfrom
feature/develop

Conversation

@gustavofreze
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 12, 2026 23:06
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c5e52fc4b9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the codebase to improve HTTP request and response handling through namespace reorganization and the addition of new request decoding functionality.

Changes:

  • 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

Reviewed changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
composer.json Updated autoload-dev namespace, changed PHP version requirement to 8.5, removed ext-mbstring dependency
phpstan.neon.dist Added ignore rule for mixed to string conversions
README.md Added comprehensive documentation for new Request API, reorganized documentation structure
src/Request.php New public API class for wrapping and decoding PSR-7 requests
src/Internal/Request/*.php New internal classes for request decoding: Decoder, DecodedRequest, Body, Uri, and Attribute
src/Internal/Stream/*.php Moved from Internal/Response/Stream, added fromStream(), content(), and isEmptyContent() methods
src/Internal/Response/InternalResponse.php Updated import path for StreamFactory
tests/**/*.php Updated all test namespaces and imports to use Test\TinyBlocks\Http prefix
tests/RequestTest.php New comprehensive test suite for request decoding functionality
tests/Internal/Stream/StreamFactoryTest.php Moved and enhanced with rewind behavior tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gustavofreze gustavofreze merged commit bce4e88 into main Feb 13, 2026
5 checks passed
@gustavofreze gustavofreze deleted the feature/develop branch February 13, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant