Returns a new instance replacing the underlying client
with a new instance that is configured
using the withBuilder
provided.
Returns a new instance replacing the underlying client
with a new instance that is configured
using the withBuilder
provided. The current client config is the builder's prototype. The
underlying client for this instance is closed before the new instance is created.
Returns a new instance replacing the underlying client
with a new instance that is configured
using the withBuilder
provided.
Returns a new instance replacing the underlying client
with a new instance that is configured
using the withBuilder
provided. The current client config is the builder's prototype.
As of Dispatch 0.12.2, it is recommended that you use closeAndConfigure instead to prevent the automatic resource link that using this method will cause. However, if you expect to be able to continue using this Http instance after
In Dispatch 0.13.x, this will be changed such that it only causes a resource link if you've
actually used the Http client, but the method is still deprecated and is one that we're
planning to remove. If you need this functionality in the long term, it is recommended that you
change your code to invoke the .copy
method on the Http
case class directly.
(Since version 0.12.2) This method is deprecated and will be removed in a future version of dispatch. This method is known to cause a resource leak in Dispatch 0.12.x. If you don't need to continue using the original Http instance after invoking this, you should switch to using closeAndConfigure.
Http executor with defaults