Skip to content

Map platform HTTP_QUERY when HTTP_PARSER_HAS_QUERY is defined - #486

Merged
willmmiles merged 2 commits into
ESP32Async:mainfrom
EyJunge1:followup/http-query-idf-mapping
Oct 26, 2026
Merged

willmmiles merged 2 commits 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
@EyJunge1

EyJunge1 commented Oct 7, 2026 •

Copy link
Copy Markdown
Author

You're right nothing currently defines HTTP_PARSER_HAS_QUERY.

@EyJunge1

Copy link
Copy Markdown
Author

@willmmiles @mathieucarbou The ESP-IDF PR was merged: #19202 (HTTP_PARSER_HAS_QUERY is now defined). This PR should be unblocked ready for re-review.

@mathieucarbou

Copy link
Copy Markdown
Member

@willmmiles : can I let you approve the PR (your review is blocking) and then merge the PR ? Thanks!

@willmmiles
willmmiles merged commit fddcc60 into ESP32Async:main Oct 26, 2026
35 of 36 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.

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

3 participants