Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1171 - 1180 of 1,267 for func (0.04 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

    import okhttp3.MultipartBody
    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)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

     */
    class ApacheHttpClientTest {
      private val httpClient = HttpClients.createDefault()
    
      @StartStop
      private val server = MockWebServer()
    
      @AfterEach fun tearDown() {
        httpClient.close()
      }
    
      @Test fun get() {
        server.enqueue(
          MockResponse
            .Builder()
            .body("hello, Apache HttpClient 5.x")
            .build(),
        )
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/promotion/BasePublishGradleDistribution.kt

                        ******@****.***sk,
                        "checkNeedToPromote",
                    )
                }
            }
        }
    }
    
    fun BuildSteps.buildStep(
        extraParameters: String,
        gitUserName: String,
        gitUserEmail: String,
        triggerName: String,
        prepTask: String,
        stepTask: String,
    ) {
        gradleWrapper {
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Jun 26 12:10:23 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/configurations/SanityCheck.kt

                        "-Porg.gradle.java.installations.auto-download=false",
                    ).joinToString(" "),
            )
        }) {
        companion object {
            fun buildTypeId(model: CIBuildModel) = "${model.projectId}_SanityCheck"
        }
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Mon Aug 25 20:21:47 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

    import java.security.Security
    import okhttp3.Cache
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.dnsoverhttps.DohProviders.providers
    import org.conscrypt.OpenSSLProvider
    
    private fun runBatch(
      dnsProviders: List<DnsOverHttps>,
      names: List<String>,
    ) {
      var time = System.currentTimeMillis()
      for (dns in dnsProviders) {
        println("Testing ${dns.url}")
        for (host in names) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/PlatformRegistry.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.platform
    
    expect object PlatformRegistry {
      fun findPlatform(): Platform
    
      val isAndroid: Boolean
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 22 14:39:30 UTC 2025
    - 727 bytes
    - Viewed (0)
  7. docs/features/https.md

           * file that gets bundled with the application.
           */
          private fun trustedCertificatesInputStream(): InputStream {
            ... // Full source omitted. See sample.
          }
    
          private fun trustManagerForCertificates(inputStream: InputStream): X509TrustManager {
            ... // Full source omitted. See sample.
          }
        ```
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  8. okhttp/src/androidUnitTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixTesting.android.kt

    import androidx.test.core.app.ApplicationProvider
    import okhttp3.internal.platform.PlatformRegistry
    import org.robolectric.RobolectricTestRunner
    
    actual typealias PublicSuffixTestRunner = RobolectricTestRunner
    
    actual fun beforePublicSuffixTest() {
      PlatformRegistry.applicationContext = ApplicationProvider.getApplicationContext()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 08:21:20 UTC 2025
    - 974 bytes
    - Viewed (0)
  9. okcurl/src/main/kotlin/okhttp3/curl/logging/MessageFormatter.kt

     * limitations under the License.
     */
    package okhttp3.curl.logging
    
    import java.util.logging.LogRecord
    import java.util.logging.SimpleFormatter
    
    object MessageFormatter : SimpleFormatter() {
      override fun format(record: LogRecord): String = String.format("%s%n", record.message)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 845 bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-NormalizeJvm.kt

     * limitations under the License.
     */
    @file:Suppress("ktlint:standard:filename")
    
    package okhttp3.internal
    
    import java.text.Normalizer
    import java.text.Normalizer.Form.NFC
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 842 bytes
    - Viewed (1)
Back to top