def on_request(self, request):
    request.http_request.headers['Ocp-Apim-Subscription-Key'] = self.credential.api_key
    request.http_request.headers['X-BingApis-SDK-Client'] = 'Python-SDK'
def on_request(self, request):
    request.http_request.headers['Ocp-Apim-Subscription-Key'] = self.credential.api_key
    request.http_request.headers['X-BingApis-SDK-Client'] = 'Python-SDK'