Skip to content

add ability to configure Timeout for http.Client - #48

Merged
jmcampanini merged 6 commits into
developfrom
jc/add-httpclient-timeout
Jul 16, 2020
Merged

add ability to configure Timeout for http.Client#48
jmcampanini merged 6 commits into
developfrom
jc/add-httpclient-timeout

Conversation

@jmcampanini

Copy link
Copy Markdown
Member

Adds the ability to configure the http.Client's Timeout field, which is used to set a timeout for requests made by the client.

@bluekeyes bluekeyes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion on the doc comment, but looks good otherwise.

Comment thread githubapp/client_creator.go Outdated
}

// WithClientTimeout sets the timeout on http.Client for all created clients. This will set a timeout
// on all requests made by the client.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: WithClientTimeout sets a request timeout for requests made by all created clients.

@jmcampanini
jmcampanini merged commit 5da3030 into develop Jul 16, 2020
@jmcampanini
jmcampanini deleted the jc/add-httpclient-timeout branch July 16, 2020 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants