Skip to content

Feature/form urlencoded support#123

Open
shihb wants to merge 4 commits intoeclipse-vertx:mainfrom
shihb:feature/form-urlencoded-support
Open

Feature/form urlencoded support#123
shihb wants to merge 4 commits intoeclipse-vertx:mainfrom
shihb:feature/form-urlencoded-support

Conversation

@shihb
Copy link

@shihb shihb commented Mar 20, 2026

Motivation:

application/x-www-form-urlencoded is not included in the default media type registry, which causes issues when implementing OAuth2 token endpoints (RFC 6749 requires this media type).

Conformance:
Added complete support for application/x-www-form-urlencoded media type with a dedicated content analyser.

Changes Made
New Files:

XWwwFormUrlencodedAnalyser.java - Content analyser implementation for form-urlencoded data
Modified Files:

MediaTypeRegistration.java - Added form-urlencoded media type registration constants
MediaTypeRegistry.java - Registered the new media type in default registry
ContentAnalyserFactory.java - Added XWwwFormUrlencodedAnalyser to analyser factory
MediaTypeRegistryTest.java - Added unit tests for the new media type
Testing
✅ Unit tests added in MediaTypeRegistryTest
✅ Manually tested in a local project (OAuth2 token endpoint scenario)

  • Awaiting your review

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