+
Skip to content

Conversation

veewee
Copy link
Contributor

@veewee veewee commented Oct 6, 2025

Q A
Type feature
BC Break no
Fixed issues

Summary

This PR introduces form URL-encoded transport functionality to the HttpTools library, enabling applications to work with application/x-www-form-urlencoded data format for both encoding requests and decoding responses.

  • Adds FormUrlencodedEncoder and FormUrlencodedDecoder classes for handling form URL-encoded data
  • Introduces FormUrlencodedPreset as a pre-configured transport for form URL-encoded operations
  • Includes comprehensive test coverage for all new components

@veewee veewee requested a review from Copilot October 6, 2025 12:15
Copy link

@Copilot 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 PR introduces form URL-encoded transport functionality to the HttpTools library, enabling applications to work with application/x-www-form-urlencoded data format for both encoding requests and decoding responses.

  • Adds FormUrlencodedEncoder and FormUrlencodedDecoder classes for handling form URL-encoded data
  • Introduces FormUrlencodedPreset as a pre-configured transport for form URL-encoded operations
  • Includes comprehensive test coverage for all new components

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Encoding/FormUrlencoded/FormUrlencodedEncoder.php Implements encoder to convert arrays to form URL-encoded request bodies
src/Encoding/FormUrlencoded/FormUrlencodedDecoder.php Implements decoder to parse form URL-encoded response bodies into arrays
src/Transport/Presets/FormUrlencodedPreset.php Provides pre-configured transport combining encoder and decoder
tests/Unit/Encoding/FormUrlencoded/FormUrlencodedEncoderTest.php Test coverage for the encoder functionality
tests/Unit/Encoding/FormUrlencoded/FormUrlencodedDecoderTest.php Test coverage for the decoder functionality
tests/Unit/Transport/Presets/FormUrlencodedPresetTest.php Test coverage for the preset transport
docs/transports.md Updates documentation to include the new form URL-encoded components

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@veewee veewee force-pushed the form-urlencoded-transport-preset branch from aa38385 to 03a4630 Compare October 6, 2025 12:16
@veewee veewee force-pushed the form-urlencoded-transport-preset branch from 03a4630 to c626236 Compare October 6, 2025 12:17
@veewee veewee merged commit 4371d07 into phpro:v2.x Oct 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载