Example #1
0
def polling_response():
    polling = AsyncLROBasePolling()
    headers = {}

    response = Response()
    response.headers = headers
    response.status_code = 200

    polling._pipeline_response = PipelineResponse(
        None, AsyncioRequestsTransportResponse(
            None,
            response,
        ), PipelineContext(None))
    polling._initial_response = polling._pipeline_response
    return polling, headers