- Type Parameters:
T
- response type
- All Superinterfaces:
UnsafeFunction<HttpResponse<InputStream>,
T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface HttpResponseHandler<T>
extends UnsafeFunction<HttpResponse<InputStream>,T>
Functional interface for converting a validated HTTP response.
-
Method Summary
Modifier and TypeMethodDescriptionapply
(HttpResponse<InputStream> argument) Applies an argument to a function that uses unsafe code.
-
Method Details
-
apply
Description copied from interface:UnsafeFunction
Applies an argument to a function that uses unsafe code.- Specified by:
apply
in interfaceUnsafeFunction<HttpResponse<InputStream>,
T> - Parameters:
argument
- The argument.- Returns:
- The result.
- Throws:
HttpException
-