question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose the HttpClient

See original GitHub issue

Docker 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:closed
  • Created 5 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rultorcommented, Nov 4, 2018

@rultor release it, tag is 0.0.5

@amihaiemil Done! FYI, the full log is here (took me 5min)

0reactions
0cratcommented, Nov 4, 2018

Order was finished: +35 point(s) just awarded to @amihaiemil/z

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found