Comments (6)
in my own use case it's better for things to timeout fast. I will fix the docs. thanks.
from scalaj-http.
Thanks for adding the docs. That just fixed an issue I was scratching my head trying to figure out. I thought my HAProxy server was killing SSL connections.
I agree with @alanshaw -- these timeouts are insanely low. I appreciate you're the author and it's your project, but maybe it'd help others to bump the defaults and for you to override them in your app that requires tighter timeouts?
from scalaj-http.
How do you modify the defaults for these values?
from scalaj-http.
Http(url).option(HttpOptions.connTimeout(1000)).option(HttpOptions.readTimeout(5000)).asString
On Tue, Feb 28, 2012 at 5:06 PM, Henry Minsky <
[email protected]
wrote:
How do you modify these settings?
Reply to this email directly or view it on GitHub:
#7 (comment)
from scalaj-http.
Is it possible to modify these globally rather than on every connection?
from scalaj-http.
no, but you can create your own functions to make it easier:
def myGet(url: String): Http.Request = Http(url).option(...)
from scalaj-http.
Related Issues (20)
- any reason it still uses sbt 0.13.x instead of 1.2.x? HOT 2
- publish for Scala 2.13 HOT 1
- Authentication with bearer token not working HOT 1
- data-urlencode option HOT 1
- OAuth1 RSA SHA1 signature support HOT 1
- callback passed to exec invoked 2 times, swallows original exception and passes null as input stream HOT 3
- reflections complicate using scalaj in graal builds
- Support for hostname validation HOT 2
- Custom options HOT 2
- HTTP endpoint that requires a JSON-formatted body HOT 3
- Question: Does the api throw exceptions? HOT 2
- Send a get request with body HOT 3
- scalaj.http.HttpResponse does not take type parameters HOT 3
- Provide Automatic-Module-Name
- Multipart post request fails randomly with error java.io.IOException: insufficient data written
- NoSuchMethodError in runtime for scalaj-http_2.12
- NoClassDefFoundError: Could not initialize class scalaj.http.DefaultConnectFunc$
- HTTP basic authentication in the URL is not available HOT 5
- Cannot GET with JSON -- like curl -X GET -d "jsonKey:jsonVal" HOT 5
- Anything similar for send data as a form body 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 scalaj-http.