Skip to content

Commit 35552c0

Browse files
fix(method-definition): add missing request parameter in method (#11)
This commit bears the fix for the method definition in HttpClient class where convert_response method has a parameter missing in the definition. This change adds a request parameter of type HttpRequest in the method definition. closes #10
1 parent f7750b9 commit 35552c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apimatic_core_interfaces/client/http_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ def execute(self, request, endpoint_configuration):
2525
...
2626

2727
@abstractmethod
28-
def convert_response(self, response, contains_binary_response):
28+
def convert_response(self, response, contains_binary_response, request):
2929
"""Converts the Response object of the HttpClient into an
3030
HttpResponse object.
3131
3232
Args:
3333
response (dynamic): The original response object.
3434
contains_binary_response (bool): The flag to check if the response is of binary type.
35+
request (HttpRequest): The original HttpRequest object.
3536
3637
Returns:
3738
HttpResponse: The converted HttpResponse object.

0 commit comments

Comments
 (0)