Skip to content

Commit edb6897

Browse files
committed
added get timeout
1 parent c6db71b commit edb6897

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

httpclient/timeouts.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ func (c *Client) ModifyHttpTimeout(newTimeout time.Duration) {
1313
func (c *Client) ResetTimeout() {
1414
c.http.Timeout = DefaultTimeout
1515
}
16+
17+
func (c *Client) HttpTimeout() time.Duration {
18+
return c.http.Timeout
19+
}

0 commit comments

Comments
 (0)