Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Allow multi URL params of the same name #122

Merged
merged 3 commits into from
May 18, 2021
Merged

Conversation

thomasvidas
Copy link
Contributor

@thomasvidas thomasvidas commented May 18, 2021

Fixes #59

You can now add string or string[] to your params as shown in the example

const ret = await Http.request({
  method: 'GET',
  url: 'http://www.example.com'
  params: {
    size: ['XL', 'L'],
    music: 'cool',
  },
});

Will make a GET request to `http://www.example.com?size=XL&size=L&music=cool

Also updates to the latest RC

@thomasvidas thomasvidas merged commit e39af4f into capacitor-v3 May 18, 2021
@thomasvidas thomasvidas deleted the multi-query-param branch May 18, 2021 20:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant