类的使用
net.dongliu.cute.http.ContentType
-
使用ContentType的程序包 程序包 说明 net.dongliu.cute.http The Http APIsnet.dongliu.cute.http.body Http Request Bodies -
-
net.dongliu.cute.http中ContentType的使用
返回ContentType的net.dongliu.cute.http中的方法 修饰符和类型 方法 说明 static ContentTypeContentType. multiPart(String boundary)Create a multi-part Content-Type.static ContentTypeContentType. of(MimeType mimeType)Create a ContentType, which do not care about charset encoding.static ContentTypeContentType. of(MimeType mimeType, Charset charset)Create a ContentType with a charset, used for Textual ContentType.返回变量类型为ContentType的类型的net.dongliu.cute.http中的方法 修饰符和类型 方法 说明 Optional<ContentType>HTTPHeaders. contentType()Get content type set in http header.static Optional<ContentType>ContentType. safeParse(String contentTypeStr)Parse from content type str. -
net.dongliu.cute.http.body中ContentType的使用
返回ContentType的net.dongliu.cute.http.body中的方法 修饰符和类型 方法 说明 ContentTypeAbstractBody. contentType()ContentTypeBody. contentType()The content type.参数类型为ContentType的net.dongliu.cute.http.body中的构造器 构造器 说明 AbstractBody(T body, ContentType contentType)Construct a new Body.
-