- 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:UnsafeFunctionApplies an argument to a function that uses unsafe code.- Specified by:
applyin interfaceUnsafeFunction<HttpResponse<InputStream>,T> - Parameters:
argument- The argument.- Returns:
- The result.
- Throws:
HttpException
-