类的使用
com.lark.oapi.okhttp.MediaType
使用MediaType的程序包
程序包
说明
An HTTP+HTTP/2 client for Android and Java applications.
-
com.lark.oapi.okhttp中MediaType的使用
声明为MediaType的com.lark.oapi.okhttp中的字段修饰符和类型字段说明static final MediaTypeMultipartBody.ALTERNATIVEThe "multipart/alternative" type is syntactically identical to "multipart/mixed", but the semantics are different.static final MediaTypeMultipartBody.DIGESTThis type is syntactically identical to "multipart/mixed", but the semantics are different.static final MediaTypeMultipartBody.FORMThe media-type multipart/form-data follows the rules of all multipart MIME data streams as outlined in RFC 2046.static final MediaTypeMultipartBody.MIXEDThe "mixed" subtype of "multipart" is intended for use when the body parts are independent and need to be bundled in a particular order.static final MediaTypeMultipartBody.PARALLELThis type is syntactically identical to "multipart/mixed", but the semantics are different.修饰符和类型方法说明FormBody.contentType()MultipartBody.contentType()A combination ofMultipartBody.type()andMultipartBody.boundary().abstract MediaTypeRequestBody.contentType()Returns the Content-Type header for this body.abstract MediaTypeResponseBody.contentType()static MediaTypeReturns a media type forstring.static MediaTypeReturns a media type forstring, or null ifstringis not a well-formed media type.MultipartBody.type()参数类型为MediaType的com.lark.oapi.okhttp中的方法修饰符和类型方法说明static RequestBodyReturns a new request body that transmitscontent.static RequestBodyReturns a new request body that transmitscontent.static RequestBodyRequestBody.create(MediaType contentType, ByteString content) Returns a new request body that transmitscontent.static RequestBodyReturns a new request body that transmits the content offile.static RequestBodyReturns a new request body that transmitscontent.static ResponseBodyReturns a new response body that transmitscontent.static ResponseBodyResponseBody.create(MediaType contentType, long contentLength, BufferedSource content) Returns a new response body that transmitscontent.static ResponseBodyResponseBody.create(MediaType contentType, ByteString content) Returns a new response body that transmitscontent.static ResponseBodyReturns a new response body that transmitscontent.Set the MIME type. -
com.lark.oapi.okhttp.internal.http中MediaType的使用