类的使用
net.dongliu.cute.http.MimeType
-
使用MimeType的程序包 程序包 说明 net.dongliu.cute.http The Http APIsnet.dongliu.cute.http.body Http Request Bodies -
-
net.dongliu.cute.http中MimeType的使用
声明为MimeType的net.dongliu.cute.http中的字段 修饰符和类型 字段 说明 static MimeTypeMimeType. CSSstatic MimeTypeMimeType. HTMLstatic MimeTypeMimeType. JSONstatic MimeTypeMimeType. MULTI_PARTstatic MimeTypeMimeType. OCTET_STREAMstatic MimeTypeMimeType. TEXT_PLAINstatic MimeTypeMimeType. WWW_FORM_ENCODEDstatic MimeTypeMimeType. XHTMLstatic MimeTypeMimeType. XML返回MimeType的net.dongliu.cute.http中的方法 修饰符和类型 方法 说明 MimeTypeContentType. mimeType()The mime typestatic MimeTypeMimeType. of(String type, String subType)Create new mime type instance, by type and subType.返回变量类型为MimeType的类型的net.dongliu.cute.http中的方法 修饰符和类型 方法 说明 static Optional<MimeType>MimeType. safeParse(String mimeType)Parse mime type string.参数类型为MimeType的net.dongliu.cute.http中的方法 修饰符和类型 方法 说明 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. -
net.dongliu.cute.http.body中MimeType的使用
参数类型为MimeType的net.dongliu.cute.http.body中的方法 修饰符和类型 方法 说明 static Part<InputSupplier>Parts. file(String name, String filename, byte[] bytes, MimeType mimeType)Create a file multi-part form field.static Part<InputSupplier>Parts. file(String name, String filename, InputSupplier supplier, MimeType mimeType)Create a file multi-part form field.static Part<InputSupplier>Parts. file(String name, Path path, MimeType mimeType)Create a file multi-part form field.static Body<byte[]>Bodies. of(byte[] value, MimeType mimeType)Create request body from byte array datastatic Body<byte[]>Bodies. of(byte[] value, MimeType mimeType, Charset charset)Create request body from byte array datastatic Body<String>Bodies. of(String value, MimeType mimeType)Create request body send string data using UTF-8 charset.static Body<String>Bodies. of(String value, MimeType mimeType, Charset charset)Create request body send string datastatic Body<Path>Bodies. of(Path path, MimeType mimeType)Create request body from filestatic Body<Path>Bodies. of(Path path, MimeType mimeType, Charset charset)Create request body from filestatic Body<InputSupplier>Bodies. of(InputSupplier supplier, MimeType mimeType)Create request body from input stream.static Body<InputSupplier>Bodies. of(InputSupplier supplier, MimeType mimeType, Charset charset)Create request body from input stream.
-