-
- 类型参数:
T- the body content type
- 所有已知实现类:
AbstractBody
public interface Body<T>A http request body.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 HttpRequest.BodyPublisherasBodyPublisher()Given a charset, return a new body Publisher for sending request body.Tbody()Return the body data.ContentTypecontentType()The content type.
-
-
-
方法详细资料
-
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
-
-