Skip to content

Support duplicate keys in Query #129

Description

@paluh

There are multiple issuess with current Query representation:

  • fullPath - doesn't return original value of uri. We are not able to call it "equivalent" from my perspecitve,

  • We are trying to start using HTTPure not only for API based endpoints and we want to be able to receive data from standard HTML forms. HTML allows you to send multiple values for single query key (like with <select multiple name="key">) and it is quite common to build group of checkboxes with the same key too as multichoice widget.

I have two propositions assuming that we don't want to support empty values (like key1&key2):

  • type Query = Array (Tuple String String) with additional helper which converts this to Map

  • type Query = Map String (Array String)

We are ready to work on this and provide a PR.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions