Response Class

A pipeline response object.

The Response interface exposes an HTTP response object as it returns through the pipeline of Policy objects. This ensures that Policy objects have access to the HTTP response.

This also have a "context" dictionary where policy can put additional fields. Policy SHOULD update the "context" dictionary with additional post-processed field if they create them. However, nothing prevents a policy to actually sub-class this class a return it instead of the initial instance.

Inheritance
Response

Constructor

Response(request: msrest.pipeline.Request[HTTPRequestType], http_response: HTTPResponseType, context: Optional[Dict[str, Any]] = None)

Parameters

request
http_response
context
default value: None