Interface HttpResponseHandler<R>

  • All Known Implementing Classes:
    ThrowingResponseHandler
    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<R>
    • Method Detail

      • handle

        R handle​(@Nonnull
                 HttpResponse response)
          throws java.io.IOException
        Handle the response and return the result.
        Parameters:
        response - The response to handle
        Returns:
        The result
        Throws:
        java.io.IOException - If an I/O error occurs