Expose the HttpClient
See original GitHub issueDocker
should have the HttpClient :: httpClient()
method to return the underlying Apache http client.
This is in order to provide some extensibility – the user should be able to make raw HTTP calls to Docker’s API in case the library does not yet provide the API method in question. This is especially important in the case of LocalDocker
for which the HttpClient is quite hard to configure (it needs to use unix sockets).
Apache’s HttpClient
object is immutable so there should not be any danger in exposing it.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Expose Http Client · Issue #22 · riferrei/srclient - GitHub
I think exposing the httpClient object is risky because it breaks the encapsulation logic used in the code. Maybe a better approach could...
Read more >Make HTTP requests using IHttpClientFactory in ASP.NET Core
API-specific methods can be created that expose HttpClient functionality. For example, the GetAspNetCoreDocsBranches method encapsulates ...
Read more >Are You Using HttpClient in The Right Way? - Rahul Nath
An HttpClient class acts as a session to send HTTP Requests. It is a collection of settings applied to all requests executed by...
Read more >HttpClient (Java SE 12 & JDK 12 ) - Oracle Help Center
An HttpClient can be used to send requests and retrieve their responses. ... the HttpClient may still have a non-exposed default proxy selector...
Read more >HttpClient (reactor-netty 1.1.1)
An HttpClient allows building in a safe immutable way an http client that is ... Use the other methods exposed by HttpClient to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@amihaiemil Done! FYI, the full log is here (took me 5min)
Order was finished: +35 point(s) just awarded to @amihaiemil/z