Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for Darling (0.21 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/testing/Flaky.kt

     * limitations under the License.
     */
    package okhttp3.testing
    
    @Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
    @Retention(AnnotationRetention.RUNTIME)
    /**
     * Annotation marking a test as flaky, and requires extra logging and linking against
     * a known github issue.  This does not ignore the failure.
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 902 bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/RealResponseBody.kt

    import okhttp3.MediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.ResponseBody
    import okio.BufferedSource
    
    class RealResponseBody(
      /**
       * Use a string to avoid parsing the content type until needed. This also defers problems caused
       * by malformed content types.
       */
      private val contentTypeString: String?,
      private val contentLength: Long,
      private val source: BufferedSource,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        private const val FILE_HEADER_SIZE = 32L
    
        /**
         * Creates a new relay that reads a live stream from [upstream], using [file] to share that data
         * with other sources.
         *
         * **Warning:** callers to this method must immediately call [newSource] to create a source and
         * close that when they're done. Otherwise a handle to [file] will be leaked.
         */
        @Throws(IOException::class)
        fun edit(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        val c = this[i]
        // The WHATWG Host parsing rules accepts some character codes which are invalid by
        // definition for OkHttp's host header checks (and the WHATWG Host syntax definition). Here
        // we rule out characters that would cause problems in host headers.
        if (c <= '\u001f' || c >= '\u007f') {
          return true
        }
        // Check for the characters mentioned in the WHATWG Host parsing spec:
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

      ) {
        socket.connect(address, connectTimeout)
      }
    
      open fun log(
        message: String,
        level: Int = INFO,
        t: Throwable? = null,
      ) {
        val logLevel = if (level == WARN) Level.WARNING else Level.INFO
        logger.log(logLevel, message, t)
      }
    
      open fun isCleartextTrafficPermitted(hostname: String): Boolean = true
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/DuplexTest.kt

          requestBody.close()
          assertThat(responseBody.readUtf8Line()).isNull()
        }
        body.awaitSuccess()
      }
    
      /**
       * OkHttp currently doesn't implement failing the request body stream independently of failing the
       * corresponding response body stream. This is necessary if we want servers to be able to stop
       * inbound data and send an early 400 before the request body completes.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            entry.currentEditor = Editor(entry)
          }
    
          secondSpace == -1 && firstSpace == READ.length && line.startsWith(READ) -> {
            // This work was already done by calling lruEntries.get().
          }
    
          else -> throw IOException("unexpected journal line: $line")
        }
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(response1.header("Warning")).isEqualTo("199 test danger")
        val response2 = get(server.url("/"))
        assertThat(response2.body.string()).isEqualTo("A")
        assertThat(response2.header("Warning")).isNull()
      }
    
      @Test
      fun getHeadersRetainsCached200LevelWarnings() {
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Warning: 299 test danger")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/TestLogHandler.kt

    import org.junit.rules.TestRule
    import org.junit.runner.Description
    import org.junit.runners.model.Statement
    
    /**
     * A log handler that records which log messages were published so that a calling test can make
     * assertions about them.
     */
    class TestLogHandler(
      private val logger: Logger,
    ) : TestRule, BeforeEachCallback, AfterEachCallback {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  10. CONTRIBUTING.md

    seeking new committers at this time, but some small contributions are welcome.
    
    If you've found a security problem, please follow our [bug bounty][security] program.
    
    If you've found a bug, please contribute a failing test case so we can study and fix it.
    
    If you have a new feature idea, please build it in an external library. There are
    [many libraries][works_with_okhttp] that sit on top or hook in via existing APIs. If you build
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top