We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
body
The existing data property is a nice way to pass in an object of structured params to POST, etc.
data
It'd be great to have a body property that just passes straight through. So with tiny I could in theory do the following:
tiny
// JSON encoded await tiny.post({ url, data: { whatev: true } }) // Form URL encoded await tiny.post({ url, headers: { 'content-type': 'application/x-www-form-urlencoded' }, body: 'whatev=true' })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The existing
data
property is a nice way to pass in an object of structured params to POST, etc.It'd be great to have a
body
property that just passes straight through. So withtiny
I could in theory do the following:The text was updated successfully, but these errors were encountered: