Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 920 for fun (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/Headers.kt

        level = DeprecationLevel.ERROR,
      )
      fun size(): Int = size
    
      /** Returns the field at `position`. */
      fun name(index: Int): String = commonName(index)
    
      /** Returns the value at `index`. */
      fun value(index: Int): String = commonValue(index)
    
      /** Returns an immutable case-insensitive set of header names. */
      fun names(): Set<String> {
        val result = TreeSet(String.CASE_INSENSITIVE_ORDER)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

      @BeforeEach
      fun setup(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun testPlatform() {
        assertTrue(Platform.isAndroid)
    
        if (Build.VERSION.SDK_INT >= 29) {
          assertTrue(Platform.get() is Android10Platform)
        } else {
          assertTrue(Platform.get() is AndroidPlatform)
        }
      }
    
      @Test
      fun testRequest() {
        assumeNetwork()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirScopeProvider.kt

            return createPackageScope(packageSymbol.fqName)
        }
    
        override fun getCompositeScope(subScopes: List<KtScope>): KtScope {
            return KtCompositeScope.create(subScopes, token)
        }
    
        override fun getTypeScope(type: KtType): KtTypeScope? {
            check(type is KtFirType) { "KtFirScopeProvider can only work with KtFirType, but ${type::class} was provided" }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Response.kt

          this.trailersFn = response.trailersFn
        }
    
        open fun request(request: Request) = commonRequest(request)
    
        open fun protocol(protocol: Protocol) = commonProtocol(protocol)
    
        open fun code(code: Int) = commonCode(code)
    
        open fun message(message: String) = commonMessage(message)
    
        open fun handshake(handshake: Handshake?) =
          apply {
            this.handshake = handshake
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

              newUnknownLengthSource()
            }
          }
        }
      }
    
      override fun trailers(): Headers {
        check(state == STATE_CLOSED) { "too early; can't read the trailers yet" }
        return trailers ?: EMPTY_HEADERS
      }
    
      override fun flushRequest() {
        sink.flush()
      }
    
      override fun finishRequest() {
        sink.flush()
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

         */
        fun addInformationalResponse(response: MockResponse) =
          apply {
            informationalResponses += response
          }
    
        fun add100Continue() =
          apply {
            addInformationalResponse(MockResponse(code = 100))
          }
    
        public override fun clone(): Builder = build().newBuilder()
    
        fun build(): MockResponse = MockResponse(this)
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtDiagnosticConverter.kt

    internal interface KtFirDiagnosticCreator
    
    internal fun interface KtFirDiagnostic0Creator : KtFirDiagnosticCreator {
        fun KtFirAnalysisSession.create(diagnostic: KtSimpleDiagnostic): KtFirDiagnostic<*>
    }
    
    internal fun interface KtFirDiagnostic1Creator<A> : KtFirDiagnosticCreator {
        fun KtFirAnalysisSession.create(diagnostic: KtDiagnosticWithParameters1<A>): KtFirDiagnostic<*>
    }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Feb 15 08:13:51 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

            }
          }
        }
    
        fun isConscrypt() = getPlatformSystemProperty() == CONSCRYPT_PROPERTY
    
        fun isJdk9() = getPlatformSystemProperty() == JDK9_PROPERTY
    
        fun isJdk8() = getPlatformSystemProperty() == JDK8_PROPERTY
    
        fun isJdk8Alpn() = getPlatformSystemProperty() == JDK8_ALPN_PROPERTY
    
        fun isBouncyCastle() = getPlatformSystemProperty() == BOUNCYCASTLE_PROPERTY
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

      private var cancel = false
    
      fun enqueueCancel() {
        cancel = true
      }
    
      override fun onOpen(
        eventSource: EventSource,
        response: Response,
      ) {
        get().log("[ES] onOpen", Platform.INFO, null)
        events.add(Open(eventSource, response))
        drainCancelQueue(eventSource)
      }
    
      override fun onEvent(
        eventSource: EventSource,
        id: String?,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

      @BeforeEach
      fun setUp() {
        server.start()
      }
    
      @AfterEach
      fun tearDown() {
        server.shutdown()
      }
    
      @Test
      fun defaultMockResponse() {
        val response = MockResponse()
        assertThat(headersToList(response)).containsExactly("Content-Length: 0")
        assertThat(response.status).isEqualTo("HTTP/1.1 200 OK")
      }
    
      @Test
      fun setResponseMockReason() {
        val reasons =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
Back to top