def polling_response(): polling = LROBasePolling() headers = {} response = Response() response.headers = headers response.status_code = 200 polling._pipeline_response = PipelineResponse( None, RequestsTransportResponse( None, response, ), PipelineContext(None)) polling._initial_response = polling._pipeline_response return polling, headers
def _callback(http_response, headers={}): polling = LROBasePolling() response = Response() response.headers = headers response.status_code = 200 response = create_transport_response( http_response, None, response, ) polling._pipeline_response = PipelineResponse(None, response, PipelineContext(None)) polling._initial_response = polling._pipeline_response return polling