Skip to content

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

Description

@EyJunge1

Summary

#474 adds library-side HTTP_QUERY (RFC 10008). The platform http_method mapping was left out of that PR on purpose: HTTP_QUERY is an enumerator, not a #define, so compile-time detection needs a feature macro (or equivalent) from the platform parser.

Once espressif/esp-idf#19071 merges (or Espressif documents another detection criterion), I will add:

#if defined(HTTP_PARSER_HAS_QUERY)
      : MAP_EXTERNAL_TERNARY(HTTP_QUERY)
#endif

so WebRequestMethodComposite(http_method::HTTP_QUERY) maps onto AsyncWebRequestMethod::HTTP_QUERY.

The library parser already recognizes QUERY without this. This issue is only the IDF/Arduino enum bridge.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions