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

Already on GitHub? Sign in to your account

Discussion for a new feature - Support more content types #50

Open
mmoreiradj opened this issue Oct 12, 2024 · 0 comments
Open

Discussion for a new feature - Support more content types #50

mmoreiradj opened this issue Oct 12, 2024 · 0 comments

Comments

@mmoreiradj
Copy link

I think this is useful when we want to send xml for example.

I have to integrate an app with old applications and need tests on that endpoint.

It could also be an option to have a method on response that allows any content type.

const response = await client.post('x').xml(xml).send()

// or

const response = await client.port('x').header('content-type', 'application/xml').body(xml).send()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant