public static interface TrustedHttpClient.RequestRunner<A>
| Modifier and Type | Method and Description |
|---|---|
Either<Exception,A> |
run(Function<org.apache.http.HttpResponse,A> f)
Run the request and apply function
f to its response. |
Either<Exception,A> run(Function<org.apache.http.HttpResponse,A> f)
f to its response.
The function may throw an exception which then gets returned as the left of the Either.A or any exception that might
have occurred, either in the underlying request execution code or in the given function fCopyright © 2009–2020 Opencast Project. All rights reserved.