public interface HttpClient extends Initialisable, Stoppable
PHASE_NAME
PHASE_NAME
Modifier and Type | Method and Description |
---|---|
HttpResponse |
send(HttpRequest request,
int responseTimeout,
boolean followRedirects,
HttpRequestAuthentication authentication)
Sends a HttpRequest blocking the current thread until a response is available for the request times out.
|
void |
send(HttpRequest request,
int responseTimeout,
boolean followRedirects,
HttpRequestAuthentication authentication,
CompletionHandler<HttpResponse,Exception> handler,
WorkManager responseWorkManager)
Sends a HttpRequest without blocking the current thread.
|
initialise
HttpResponse send(HttpRequest request, int responseTimeout, boolean followRedirects, HttpRequestAuthentication authentication) throws IOException, TimeoutException
IOException
TimeoutException
void send(HttpRequest request, int responseTimeout, boolean followRedirects, HttpRequestAuthentication authentication, CompletionHandler<HttpResponse,Exception> handler, WorkManager responseWorkManager)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.