You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: httpclient/httpclient_request.go
+17-11
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ import (
17
17
// This function serves as a dispatcher, deciding whether to execute the request with or without retry logic based on the
18
18
// idempotency of the HTTP method. Idempotent methods (GET, PUT, DELETE) are executed with retries to handle transient errors
19
19
// and rate limits, while non-idempotent methods (POST, PATCH) are executed without retries to avoid potential side effects
20
-
// of duplicating non-idempotent operations.
20
+
// of duplicating non-idempotent operations. function uses an instance of a logger implementing the logger.Logger interface, used to log informational messages, warnings, and
21
+
// errors encountered during the execution of the request.
21
22
22
23
// Parameters:
23
24
// - method: A string representing the HTTP method to be used for the request. This method determines the execution path
@@ -28,8 +29,6 @@ import (
28
29
// is determined by the content-type header and the specific implementation of the API handler used by the client.
29
30
// - out: A pointer to an output variable where the response will be deserialized. The function expects this to be a pointer to
30
31
// a struct that matches the expected response schema.
31
-
// - log: An instance of a logger implementing the logger.Logger interface, used to log informational messages, warnings, and
32
-
// errors encountered during the execution of the request.
33
32
34
33
// Returns:
35
34
// - *http.Response: The HTTP response received from the server. In case of successful execution, this response contains
@@ -59,11 +58,14 @@ import (
59
58
// - The decision to retry requests is based on the idempotency of the HTTP method and the client's retry configuration,
60
59
// including maximum retry attempts and total retry duration.
0 commit comments