msrest-for-python icon indicating copy to clipboard operation
msrest-for-python copied to clipboard

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

Open iscai-msft opened this issue 3 years ago • 0 comments

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

iscai-msft avatar Apr 01 '21 19:04 iscai-msft