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

Allow PrettyPrintResponses to be chosen per Response #167

Closed
bgrant0607 opened this issue Nov 25, 2014 · 1 comment
Closed

Allow PrettyPrintResponses to be chosen per Response #167

bgrant0607 opened this issue Nov 25, 2014 · 1 comment

Comments

@bgrant0607
Copy link

We want to pretty-print responses by default, but not to pretty-print responses to requests sent by our client library, since they won't be directly looked at by humans. Right now, PrettyPrintResponses is a global, which isn't thread-friendly to change on a per-request/response basis. What I'd prefer is a field in Response that is initialized from the global but which could be changed just for that response (SetPrettyPrint(bool)).

@bgrant0607
Copy link
Author

FYI, this is low priority. We're not yet using Response.WriteEntity or WriteAsJson.

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