- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getType (0.19 sec)
-
okhttp/api/okhttp.api
public static final field IPV4 Lokhttp3/AsyncDns$DnsClass; public static final field IPV6 Lokhttp3/AsyncDns$DnsClass; public static fun getEntries ()Lkotlin/enums/EnumEntries; public final fun getType ()I public static fun valueOf (Ljava/lang/String;)Lokhttp3/AsyncDns$DnsClass; public static fun values ()[Lokhttp3/AsyncDns$DnsClass; } public abstract interface class okhttp3/Authenticator {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 70.2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt
private val client = OkHttpClient() fun run() { // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image val requestBody = MultipartBody.Builder() .setType(MultipartBody.FORM) .addFormDataPart("title", "Square Logo") .addFormDataPart( "image", "logo-square.png", File("docs/images/logo-square.png").asRequestBody(MEDIA_TYPE_PNG),
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.1K bytes - Viewed (0) -
docs/recipes.md
private val client = OkHttpClient() fun run() { // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image val requestBody = MultipartBody.Builder() .setType(MultipartBody.FORM) .addFormDataPart("title", "Square Logo") .addFormDataPart("image", "logo-square.png", File("docs/images/logo-square.png").asRequestBody(MEDIA_TYPE_PNG))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Feb 18 08:52:22 GMT 2022 - 40.2K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/MultipartReaderTest.kt
} } /** Confirm that [MultipartBody] and [MultipartReader] can work together. */ @Test fun `multipart round trip`() { val body = MultipartBody.Builder("boundary") .setType(MultipartBody.PARALLEL) .addPart("Quick".toRequestBody("text/plain".toMediaType())) .addFormDataPart("color", "Brown") .addFormDataPart("animal", "fox.txt", "Fox".toRequestBody()) .build()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MultipartBodyTest.kt
|... contents of file2.gif ... |--BbC04y-- | |--AaB03x-- | """.trimMargin().replace("\n", "\r\n") val body = MultipartBody.Builder("AaB03x") .setType(MultipartBody.FORM) .addFormDataPart("submit-name", "Larry") .addFormDataPart( "files", null, MultipartBody.Builder("BbC04y") .addPart(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java
public void run() throws Exception { // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image RequestBody requestBody = new MultipartBody.Builder() .setType(MultipartBody.FORM) .addFormDataPart("title", "Square Logo") .addFormDataPart("image", "logo-square.png", RequestBody.create( new File("docs/images/logo-square.png"),
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jun 24 12:59:42 GMT 2019 - 2.2K bytes - Viewed (0) -
okhttp-android/src/main/baseline-prof.txt
HSPLokio/AsyncTimeout;-><clinit>()V HSPLokio/AsyncTimeout;-><init>()V HSPLokio/AsyncTimeout;->enter()V HSPLokio/AsyncTimeout;->exit()Z HSPLokio/Buffer;-><init>()V HSPLokio/Buffer;->exhausted()Z HSPLokio/Buffer;->getByte(J)B HSPLokio/Buffer;->indexOfElement(Lokio/ByteString;)J HSPLokio/Buffer;->rangeEquals(JLokio/ByteString;)Z HSPLokio/Buffer;->read(Lokio/Buffer;J)J HSPLokio/Buffer;->read([BII)I HSPLokio/Buffer;->readByte()B
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Mar 21 11:22:00 GMT 2022 - 127.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartBody.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
@Test fun multipartBodyBuilder() { val requestBody = "".toRequestBody(null) var builder: MultipartBody.Builder = MultipartBody.Builder() builder = MultipartBody.Builder("") builder = builder.setType("".toMediaType()) builder = builder.addPart(requestBody) builder = builder.addPart(headersOf(), requestBody) builder = builder.addPart(null, requestBody) builder = builder.addFormDataPart("", "")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4)