Option to always store body as binary #15

Closed
robfletcher opened this Issue Aug 25, 2011 · 6 comments

Comments

Projects
None yet
3 participants
Collaborator

robfletcher commented Aug 25, 2011

No description provided.

Is it possible also to store always not as binary?
When building the tests, and using the real endpoints, there are situations that are not easy to make it happen, or perhaps you just want to simulate a situation, and then it would be nice to manipulate the body response as you wish.

Collaborator

robfletcher commented May 19, 2014

The problem with that is that the response body may contain data that will break YAML encoding and render the tape file unreadable.

Mmm got your point. I finally did it by hand, but i think that we should have some kind of workaround to manipulate the response. Any thoughts about this?

Collaborator

robfletcher commented May 20, 2014

I've tried to ensure text is used as much as possible but ultimately SnakeYAML makes the decision and it has some heuristics about what it thinks will work as text. I'm not sure what more it's possible to do. It would be nice.

Collaborator

cowboygneox commented Dec 31, 2016

We could probably figure out whether to store it as text or binary based on header attributes like Content-Type or maybe Transfer-Encoding.

Collaborator

cowboygneox commented Jan 1, 2017

@cowboygneox cowboygneox closed this Jan 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment