Interface Response.BodyHandler<T>

  • Type Parameters:
    T - the body type
    Enclosing interface:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    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.
        response - the initial response information
        the response body