Override spray's default settings for sending requests with the given timeouts.
the name of the remote host you want to communicate with
the port the remote host is listening on
the timeout to use when establishing a remote connection to the remote host
the timeout to use when waiting for a response from the remote host
the maximum number of connections to the remote host that will be held open at a time by the returned connector
an optional unique ID to use as the User-Agent header for requests to this host. If you want to maintain multiple host connector pools to a single remote host (for example, to prevent long-running requests from interfering with quick requests), setting this field to different values for each will prevent spray from sharing a connector between the different types of requests.
Send an HTTP request through spray using a dedicated
HostConnectorSetup, and process the
response using the given function.
HttpRequest object to send over the wire
HostConnectorSetup object defining connection and timeout
information for your request. See
getConnectionSetup for a method of building these
a function from
HttpResponse to a generic value
T you want to
extract from your request's response