Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for parsing (0.19 sec)

  1. 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)
  2. 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)
  3. okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt

        private val KNOWN_FAILURES =
          listOf(
            "Parsing: <http://example\t.\norg> against <http://example.org/foo/bar>",
            "Parsing: <http://f:0/c> against <http://example.org/foo/bar>",
            "Parsing: <http://f:00000000000000/c> against <http://example.org/foo/bar>",
            "Parsing: <http://f:\n/c> against <http://example.org/foo/bar>",
            "Parsing: <http://f:999999/c> against <http://example.org/foo/bar>",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

            // that. If any of the BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS ended in "'GMT'" we'd have
            // to also check that position.getIndex() == value.length() otherwise parsing might have
            // terminated early, ignoring things like "+01:00". Leaving this as != 0 means that any
            // trailing junk is ignored.
            return result
          }
        }
      }
      return null
    }
    
    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)
  5. docs/changelogs/changelog_1x.md

     * Fix: Support SPDY header blocks with trailing bytes.
     * Fix: Allow `;` as separator for `Cache-Control` header.
     * Fix: Correct bug where HTTPS POST requests were always automatically buffered.
     * Fix: Honor read timeout when parsing SPDY headers.
    
    
    ## Version 1.2.1
    
    _2013-08-23_
    
     * Resolve issue with 'jar-with-dependencies' artifact creation.
     * Fix: Support empty SPDY header values.
    
    
    ## Version 1.2.0
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  6. native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt

    import org.graalvm.nativeimage.hosted.RuntimeReflection
    
    @AutomaticFeature
    class TestRegistration : Feature {
      override fun beforeAnalysis(access: Feature.BeforeAnalysisAccess) {
        // Presumably needed for parsing the testlist.txt file.
        RuntimeClassInitialization.initializeAtBuildTime(access.findClassByName("kotlin.text.Charsets"))
    
        registerKnownTests(access)
    
        registerJupiterClasses(access)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/WebPlatformUrlTestData.kt

          "p" -> path = value
          "q" -> query = value
          "f" -> fragment = value
          else -> throw IllegalArgumentException("unexpected attribute: $value")
        }
      }
    
      override fun toString(): String = format("Parsing: <%s> against <%s>", input!!, base!!)
    
      companion object {
        fun load(source: BufferedSource): List<WebPlatformUrlTestData> {
          val list = mutableListOf<WebPlatformUrlTestData>()
          while (true) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  8. 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)
  9. docs/changelogs/changelog_4x.md

     *  Fix: Read the response even if writing the request fails. This means you'll get a proper HTTP
        response even if the server rejects your request body.
     *  Fix: Use literal IP addresses directly rather than passing them to `DnsOverHttps`.
     *  Fix: Embed Proguard rules to prevent warnings from tools like DexGuard and R8. These warnings
        were triggered by OkHttp’s feature detection for TLS packages like `org.conscrypt`,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_3x.md

     *  Fix: Gracefully recover from HTTP/2 connection shutdowns at start of request.
     *  Fix: Be lenient if a `MediaType`'s character set is `'single-quoted'`.
     *  Fix: Allow horizontal tab characters in header values.
     *  Fix: When parsing HTTP authentication headers permit challenge parameters in any order.
    
    
    ## Version 3.4.2
    
    _2016-11-03_
    
     *  Fix: Recover gracefully when an HTTP/2 connection is shutdown. We had a
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
Back to top