Skip to content

Add ability to insert delegating handlers into HttpClient#23

Merged
mikeparker merged 1 commit intodocker:masterfrom
mikeparker:delegating-handler-support
Oct 22, 2019
Merged

Add ability to insert delegating handlers into HttpClient#23
mikeparker merged 1 commit intodocker:masterfrom
mikeparker:delegating-handler-support

Conversation

@mikeparker
Copy link
Contributor

Also make a Builder pattern for the HttpClient (as theres a lot of optional parameters now). Add a test logging handler and check it works.

This allows the caller to insert a request / response logger to output timings etc.

Signed-off-by: Mike Parker [email protected]

…lder pattern for the HttpClient (as theres a lot of optional parameters now). Add a test logging handler and check it works.

Signed-off-by: Mike Parker <[email protected]>
Copy link
Member

@mat007 mat007 left a comment

Choose a reason for hiding this comment

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

Yes!

@mikeparker mikeparker merged commit 63f6ed3 into docker:master Oct 22, 2019
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

Comments