Interface Response.BodyHandler<T>

  • Type Parameters:
    T - the body type
    Enclosing interface:
    Response<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 static interface Response.BodyHandler<T>
    An interface for mapping an HTTP response into a specific Java type.
    • Method Detail

      • apply

        T apply​(Response.ResponseInfo response)
        Transform the response into the desired Java type.
        Parameters:
        response - the initial response information
        Returns:
        the response body