Skip to content

Commit

Permalink
configToParams
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Abboud committed Jun 17, 2021
1 parent 258a102 commit d17a02e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conjure-go-client/httpclient/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ func configToParams(c ClientConfig) ([]ClientParam, error) {
if c.ExpectContinueTimeout != nil && *c.ExpectContinueTimeout != 0 {
params = append(params, WithExpectContinueTimeout(*c.ExpectContinueTimeout))
}
if c.HTTP2ReadIdleTimeout != nil && *c.HTTP2ReadIdleTimeout != 0 {
params = append(params, WithHTTP2ReadIdleTimeout(*c.HTTP2ReadIdleTimeout))
}
if c.HTTP2PingTimeout != nil && *c.HTTP2PingTimeout != 0 {
params = append(params, WithHTTP2PingTimeout(*c.HTTP2PingTimeout))
}

// Connections

Expand Down

0 comments on commit d17a02e

Please sign in to comment.