Interface RequestEntity.BodyBuilder

    • Method Detail

      • body

        <T> RequestEntity<T> body​(T body)
        Set the body of the request entity and build the RequestEntity.
        Type Parameters:
        T - the type of the body
        Parameters:
        body - the body of the request entity
        Returns:
        the built request entity
      • body

        <T> RequestEntity<T> body​(T body,
                                  Type type)
        Set the body and type of the request entity and build the RequestEntity.
        Type Parameters:
        T - the type of the body
        Parameters:
        body - the body of the request entity
        type - the type of the body, useful for generic type resolution
        Returns:
        the built request entity
        Since:
        4.3