Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add array support in query strings 馃敟 #101

Closed
its5Q opened this issue Aug 4, 2023 · 2 comments
Closed

Add array support in query strings 馃敟 #101

its5Q opened this issue Aug 4, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@its5Q
Copy link

its5Q commented Aug 4, 2023

Is your feature request related to a problem? Please describe. 馃
Right now, there is no way to pass arrays in GET requests as query parameters. Usually, these are the two ways for passing arrays in query params:

  • ?foo=bar&foo=baz
  • ?foo[]=bar&foo[]=baz

Describe the solution you'd like 馃挕
I think it would be great for the second option to be implemented in HappyX, enabling the use of arrays in query parameters

@its5Q its5Q added the enhancement New feature or request label Aug 4, 2023
@Ethosa
Copy link
Contributor

Ethosa commented Aug 4, 2023

sounds interesting

@Ethosa Ethosa self-assigned this Aug 4, 2023
@Ethosa
Copy link
Contributor

Ethosa commented Aug 5, 2023

I'll add this feature in next commit.
image

To work with arrays you should use queryArr instead of query
image

Ethosa added a commit that referenced this issue Aug 5, 2023
@Ethosa Ethosa closed this as completed Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants