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
I'd like to test responses with binary data (images), but mockito seems to assume the body is UTF-8-encoded string.
Could you change .with_body to accept AsRef<[u8]> and store the body as Vec<u8>? This should make it work for both strings and binary data.
.with_body
AsRef<[u8]>
Vec<u8>
The text was updated successfully, but these errors were encountered:
Support binary responses
87a3a68
Fixes lipanski#42
5eb96d3
Fixes #42
No branches or pull requests
I'd like to test responses with binary data (images), but mockito seems to assume the body is UTF-8-encoded string.
Could you change
.with_body
to acceptAsRef<[u8]>
and store the body asVec<u8>
? This should make it work for both strings and binary data.The text was updated successfully, but these errors were encountered: