Returns a new instance replacing the underlying clientBuilder
with a new instance that is
configured using the withBuilder
provided.
Returns a new instance replacing the underlying clientBuilder
with a new instance that is
configured using the withBuilder
provided. The underlying client for this instance is closed
before the new instance is created in order to avoid resource leaks.
Returns a new instance replacing the underlying clientBuilder
with a new instance that is configured
using the withBuilder
provided.
Returns a new instance replacing the underlying clientBuilder
with a new instance that is configured
using the withBuilder
provided. The current client config is the builder's prototype.
This method may cause a resource link if you've used the Http client instance you're
invoking configure
on. For that reason it's recommended to use closeAndConfigure
instead
if you need to reconfigure an existing Http instance.
If you need to preserve this behavior, it is recommended that you invoke .copy
on the
Http
instance in your code so that it's obvious that you have created another copy of
the executor and that the old one should still be maintained.
(Since version 0.13.0) This method is deprecated and will be removed in a future version of dispatch. Please use Http.withConfiguration or closeAndConfigure. Or, optionally, directly invoke .copy on the executor and mutate the Builder yourself.
Http executor with defaults