hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Allow access to default HttpParams
Date Mon, 13 Dec 2010 11:20:46 GMT
For HC 3.1, JMeter supports a configuration file which can be used to
set up global defaults.

There is no concept of global defaults in HC 4.x, but one can
initialise HttpClient with a DefaultedHttpParams to get similar
functionality.

The method DefaultHttpClient.createHttpParams() creates a default set
of parameters (HttpVersion etc.), however it is not static (so it
means creating a temporary HttpClient) and it forces one to use
SyncBasicHttpParams.

This makes it harder than it could be to create the initial parameter set.

I think it would be useful to expose the defaults as a static method,
with parameter HttpParams, and call that from createHttpParams().

Any objections to adding that?
Or is there a better way of achieving the same goal?
Perhaps the defaults belong in AbstractHttpClient?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message