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

Can unirest-mock capture request body #444

Closed
yhjhoo opened this issue Jun 15, 2022 · 2 comments
Closed

Can unirest-mock capture request body #444

yhjhoo opened this issue Jun 15, 2022 · 2 comments

Comments

@yhjhoo
Copy link

yhjhoo commented Jun 15, 2022

Can unirest-mock capture request body?

@ryber
Copy link
Collaborator

ryber commented Jun 16, 2022

unrest-mock primarily has a expectation on a body, so it doesn't capture it so much as takes a look and sees if it matches it's expectation. The problem with capturing it entirely is that the formatting of the body is something that is going to be done at a lower level that where the mock sits. Apache Http Client (or Java in the case of Unirest-4) will do a lot of the formatting, especially for multi-part bodies

ryber added a commit that referenced this issue Nov 26, 2022
ryber added a commit that referenced this issue Nov 26, 2022
@ryber
Copy link
Collaborator

ryber commented Nov 26, 2022

this is complete in 3.14.0 / 4.0.0-RC6

@ryber ryber closed this as completed Nov 26, 2022
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

2 participants