- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for upload (0.18 sec)
-
samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt
import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody.Companion.asRequestBody class PostMultipart { 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(
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) -
.github/workflows/docs.yml
permissions: contents: read env: GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" jobs: test_docs: permissions: checks: write # for actions/upload-artifact runs-on: ubuntu-latest if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'documentation') steps: - name: Checkout uses: actions/checkout@v4
Others - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Mar 04 06:13:36 GMT 2024 - 1K bytes - Viewed (0) -
docs/recipes.md
} } ``` ### Posting a multipart request ([.kt][PostMultipartKotlin], [.java][PostMultipartJava])
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) -
samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java
private static final MediaType MEDIA_TYPE_PNG = MediaType.get("image/png"); private final OkHttpClient client = new OkHttpClient(); 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")
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) -
.github/workflows/build.yml
uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 17 - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - name: Upload Artifacts run: ./gradlew clean publish --stacktrace env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
Others - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 01:51:50 GMT 2024 - 17.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
doUpload(TransferKind.FIXED_LENGTH, WriteKind.BYTE_BY_BYTE) } @Test fun fixedLengthUpload_smallBuffers() { doUpload(TransferKind.FIXED_LENGTH, WriteKind.SMALL_BUFFERS) } @Test fun fixedLengthUpload_largeBuffers() { doUpload(TransferKind.FIXED_LENGTH, WriteKind.LARGE_BUFFERS) } private fun doUpload( uploadKind: TransferKind, writeKind: WriteKind, ) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
.github/workflows/containers.yml
permissions: contents: read env: GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" jobs: test_containers: permissions: checks: write # for actions/upload-artifact runs-on: ubuntu-latest if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'containers') steps: - name: Checkout uses: actions/checkout@v4
Others - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Mar 23 12:00:11 GMT 2024 - 911 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
} @Test fun uploadBodySmallChunkedEncoding() { upload(true, 1048576, 256) val recordedRequest = server.takeRequest() assertThat(recordedRequest.bodySize).isEqualTo(1048576) assertThat(recordedRequest.chunkSizes).isNotEmpty() } @Test fun uploadBodyLargeChunkedEncoding() { upload(true, 1048576, 65536) val recordedRequest = server.takeRequest()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat
ly com.ly net.ly gov.ly plc.ly edu.ly sch.ly med.ly org.ly id.ly // ma : https://en.wikipedia.org/wiki/.ma // http://www.anrt.ma/fr/admin/download/upload/file_fr782.pdf ma co.ma net.ma gov.ma org.ma ac.ma press.ma // mc : http://www.nic.mc/ mc tm.mc asso.mc // md : https://en.wikipedia.org/wiki/.md md
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 240.3K bytes - Viewed (3) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt
return KeyStore.getInstance(keyStoreType ?: KeyStore.getDefaultType()).apply { val inputStream: InputStream? = null // By convention, 'null' creates an empty key store. load(inputStream, password) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.1K bytes - Viewed (0)