接口 Body<T>

  • 类型参数:
    T - the body content type
    所有已知实现类:
    AbstractBody

    public interface Body<T>
    A http request body.
    • 方法详细资料

      • body

        T body()
        Return the body data.
        返回:
        the body
      • contentType

        ContentType contentType()
        The content type.
        返回:
        the content type
      • asBodyPublisher

        HttpRequest.BodyPublisher asBodyPublisher()
        Given a charset, return a new body Publisher for sending request body.
        返回:
        the Body Publisher