- java.lang.Object
-
- net.dongliu.cute.http.body.AbstractBody<T>
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractBody(T body, ContentType contentType)Construct a new Body.
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract HttpRequest.BodyPublisherasBodyPublisher()Return body Publisher for sending request body.Tbody()Return the body data.ContentTypecontentType()The content type.
-
-
-
构造器详细资料
-
AbstractBody
protected AbstractBody(T body, ContentType contentType)
Construct a new Body.- 参数:
body- the body datacontentType- the content type
-
-
方法详细资料
-
contentType
public ContentType contentType()
从接口复制的说明:BodyThe content type.- 指定者:
contentType在接口中Body<T>- 返回:
- the content type
-
asBodyPublisher
public abstract HttpRequest.BodyPublisher asBodyPublisher()
Return body Publisher for sending request body.- 指定者:
asBodyPublisher在接口中Body<T>- 返回:
- the Body Publisher
-
-