Is there a way to create the client only once and have a different timeout for each request? #763
-
follow c.httpClient.Do Method..
deadline is defined from httpClient.Timeout in resty's Client structure. |
Beta Was this translation helpful? Give feedback.
Answered by
violin0622
Nov 21, 2024
Replies: 1 comment
-
Set context timeout and use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jeevatkm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set context timeout and use
SetContext(ctx)
for each request.