Skip to content

Support application/x-www-form-urlencoded body #1157

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
elliots opened this issue Jun 2, 2023 · 1 comment
Closed
1 task done

Support application/x-www-form-urlencoded body #1157

elliots opened this issue Jun 2, 2023 · 1 comment
Labels
enhancement New feature or request openapi-fetch Relevant to the openapi-fetch library PRs welcome PRs are welcome to solve this issue!

Comments

@elliots
Copy link

elliots commented Jun 2, 2023

Description

Support form encoded body

Proposal

// handle body the same way as json in the client

// on fetch:
headers:{
  'Content-Type': 'application/x-www-form-urlencoded'
},    

body: new URLSearchParams({
   hello: 'world,
})

Checklist

@elliots elliots added enhancement New feature or request PRs welcome PRs are welcome to solve this issue! openapi-fetch Relevant to the openapi-fetch library labels Jun 2, 2023
@drwpow
Copy link
Contributor

drwpow commented Jun 28, 2023

This has been added as of 0.6.0! 🎉 Please let me know if you are still encountering issues.

@drwpow drwpow closed this as completed Jun 28, 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 openapi-fetch Relevant to the openapi-fetch library PRs welcome PRs are welcome to solve this issue!
Projects
None yet
Development

No branches or pull requests

2 participants