Skip to content

Map platform HTTP_QUERY when HTTP_PARSER_HAS_QUERY is defined - #486

Open
EyJunge1 wants to merge 1 commit into
ESP32Async:mainfrom
EyJunge1:followup/http-query-idf-mapping
Open

EyJunge1 wants to merge 1 commit into
ESP32Async:mainfrom
EyJunge1:followup/http-query-idf-mapping

Conversation

@EyJunge1

@EyJunge1 EyJunge1 commented Oct 6, 2026 •

Copy link
Copy Markdown

Summary

  • Map http_method::HTTP_QUERY via MAP_EXTERNAL_TERNARY(HTTP_QUERY) behind #if defined(HTTP_PARSER_HAS_QUERY), so only platforms that advertise QUERY support get the bridge.
  • Library-side HTTP_QUERY parsing was already added in Add HTTP QUERY method (RFC 10008) #474; this is only the platform enum bridge.

Closes #476

Related: #474, #475, espressif/esp-idf#19071

Test plan

  • Build with ESP-IDF that defines HTTP_PARSER_HAS_QUERY and ASYNCWEBSERVER_HTTP_METHOD_INTEGRATION enabled → mapping works
  • Build on a platform without HTTP_PARSER_HAS_QUERY → still compiles
  • Existing method mappings (GET/POST/…) unchanged

mathieucarbou
mathieucarbou previously approved these changes Oct 6, 2026
Comment thread src/ESPAsyncWebServer.h
Enable WebRequestMethodComposite(http_method::HTTP_QUERY) only when
the platform parser advertises QUERY support, so platforms without
the enum stay buildable.
@EyJunge1
EyJunge1 force-pushed the followup/http-query-idf-mapping branch from 759c45f to d4e210d Compare October 7, 2026 05:25
@EyJunge1 EyJunge1 changed the title Map platform HTTP_QUERY in http_method integration Map platform HTTP_QUERY when HTTP_PARSER_HAS_QUERY is defined Oct 7, 2026
Comment thread src/ESPAsyncWebServer.h
: MAP_EXTERNAL_TERNARY(HTTP_PURGE)
: MAP_EXTERNAL_TERNARY(HTTP_LINK)
: MAP_EXTERNAL_TERNARY(HTTP_UNLINK)
#if defined(HTTP_PARSER_HAS_QUERY)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does any platform set this? As far as I can tell, the upstream ESP-IDF PR does not expose this macro.

@EyJunge1

EyJunge1 commented Oct 7, 2026 •

Copy link
Copy Markdown
Author

You're right nothing currently defines HTTP_PARSER_HAS_QUERY.

This branch has not been deployed

No deployments
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.

Follow-up: map platform HTTP_QUERY after ESP-IDF QUERY support lands

3 participants