接口 RequestEntity.BodyBuilder

    • 方法详细资料

      • body

        <T> RequestEntity<T> body​(T body)
        Set the body of the request entity and build the RequestEntity.
        类型参数:
        T - the type of the body
        参数:
        body - the body of the request entity
        返回:
        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.
        类型参数:
        T - the type of the body
        参数:
        body - the body of the request entity
        type - the type of the body, useful for generic type resolution
        返回:
        the built request entity
        从以下版本开始:
        4.3