Skip to content

Add SttpMockServerClient Binary Endpoint#4224

Open
NiklasVonMinckwitz wants to merge 4 commits into
softwaremill:masterfrom
NiklasVonMinckwitz:feat-sttp-mock-server-binary-endpoint
Open

Add SttpMockServerClient Binary Endpoint#4224
NiklasVonMinckwitz wants to merge 4 commits into
softwaremill:masterfrom
NiklasVonMinckwitz:feat-sttp-mock-server-binary-endpoint

Conversation

@NiklasVonMinckwitz

Copy link
Copy Markdown
Contributor

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

adamw commented Dec 27, 2024

Copy link
Copy Markdown
Member

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