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

Add SttpMockServerClient Binary Endpoint #4224

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Husky22
Copy link
Contributor

@Husky22 Husky22 commented Dec 25, 2024

Interpret application/octet-stream as BINARY endpoint with base64 encoding.

I'm not sure whether only application/octet-stream should be interpreted as binary or also images?

@adamw
Copy link
Member

adamw commented Dec 27, 2024

binary vs textual is non-trivial to determine using just the content type, but I suppose if you get anything else than text/* or application/* it's binary; for application/* it might be both, so probably safer to default to text. There's also multipart, but that's yet another story

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

Successfully merging this pull request may close these issues.

2 participants