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 models to deserialize an azure.core.rest.HttpResponse #238

Open
iscai-msft opened this issue Apr 1, 2021 · 0 comments
Open

allow models to deserialize an azure.core.rest.HttpResponse #238

iscai-msft opened this issue Apr 1, 2021 · 0 comments
Assignees

Comments

@iscai-msft
Copy link
Contributor

Basically on line 1538 of serialization.py, set to internal response if it exists. This way, we can just go ahead and deal with the internal azure.core.pipeline.transport.HttpResponse instead of our client-facing azure.core.rest.HttpRequest wrapper

try:
    raw_data = raw_data._internal_response
except AttributeError:
    pass

Add tests that this works

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

1 participant