Comments (2)
I think it depends what you're going for. Do you want to keep the number of fds as low as possible when connecting to lots of different hosts, or do you want to use it as a more general purpose connection pool?
It may be worth introducing an option pattern to allow runtime tweaks of some of these parameters.
from go-cleanhttp.
I think it is easy to modify all of those on returned http.Transport
struct? This is package is really about sane defaults. If you want to change those defaults, you can do it yourself. They are all public fields. I do not think we should be adding options to the package.
from go-cleanhttp.
Related Issues (9)
- The README should caution users against careless instantiation of the client HOT 3
- default http timeout HOT 1
- go 1.11.6/1.12 reject control characters in URLs already, causing test failures
- Add a copyright / notice file HOT 1
- Enable ForceAttemptHTTP2 as default HOT 1
- add custom trusted-CA handling to getters x509.SystemCertPool AppendCertsFromPEM or via env spec SSL_CERT_FILE HOT 1
- Build errors HOT 4
- Go 1.7 has more fields set in the default Transport HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-cleanhttp.