From 00f7393e608dd77a42c840e9da10bf8bc6f0e0e5 Mon Sep 17 00:00:00 2001 From: Pablo Baxter Date: Thu, 16 Jul 2026 12:27:38 -0700 Subject: [PATCH] Update all the documentation to prevent broken links everywhere --- CHANGELOG.md | 34 +++++++++---------- CONTRIBUTING.md | 12 +++---- README.md | 20 +++++------ .../okhttp/android/testapp/MainActivity.kt | 2 +- .../java/okhttp/android/test/OkHttpTest.kt | 2 +- .../okhttp/android/test/StrictModeTest.kt | 2 +- .../okhttp.publish-conventions.gradle.kts | 8 ++--- docs/changelogs/changelog_4x.md | 18 +++++----- docs/contribute/contributing.md | 12 +++---- docs/contribute/debug_logging.md | 4 +-- docs/features/caching.md | 2 +- docs/features/calls.md | 12 +++---- docs/features/connections.md | 22 ++++++------ docs/features/events.md | 6 ++-- docs/features/https.md | 14 ++++---- docs/features/r8_proguard.md | 4 +-- docs/releasing.md | 2 +- docs/security/tls_configuration_history.md | 14 ++++---- mkdocs.yml | 4 +-- .../platform/android/AndroidSocketAdapter.kt | 2 +- .../kotlin/okhttp3/ConnectionSpec.kt | 2 +- .../kotlin/okhttp3/HttpUrl.kt | 2 +- .../internal/connection/ConnectPlan.kt | 2 +- .../src/jvmTest/kotlin/okhttp3/CacheTest.kt | 18 +++++----- okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt | 28 +++++++-------- .../okhttp3/CertificatePinnerKotlinTest.kt | 2 +- .../kotlin/okhttp3/ConnectionReuseTest.kt | 2 +- .../kotlin/okhttp3/EventListenerTest.kt | 2 +- .../kotlin/okhttp3/FastFallbackTest.kt | 2 +- .../kotlin/okhttp3/HeadersChallengesTest.kt | 2 +- .../jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt | 6 ++-- .../okhttp3/ServerTruncatesRequestTest.kt | 2 +- .../kotlin/okhttp3/SocketChannelTest.kt | 2 +- .../kotlin/okhttp3/URLConnectionTest.kt | 12 +++---- .../okhttp3/WholeOperationTimeoutTest.kt | 2 +- .../internal/cache/DiskLruCacheTest.kt | 2 +- .../FastFallbackExchangeFinderTest.kt | 2 +- .../internal/connection/RouteSelectorTest.kt | 2 +- .../okhttp3/internal/http/StatusLineTest.kt | 2 +- .../internal/http2/Http2ConnectionTest.kt | 4 +-- .../internal/http2/HttpOverHttp2Test.kt | 18 +++++----- .../CertificatePinnerChainValidationTest.kt | 8 ++--- .../okhttp3/internal/tls/ClientAuthTest.kt | 4 +-- .../ws/MessageDeflaterInflaterTest.kt | 6 ++-- .../okhttp3/internal/ws/WebSocketHttpTest.kt | 12 +++---- .../okhttp3/compare/OkHttpClientTest.kt | 2 +- .../main/java/okhttp3/guide/GetExample.java | 2 +- .../java/okhttp3/recipes/AccessHeaders.java | 2 +- .../java/okhttp3/recipes/kt/AccessHeaders.kt | 2 +- .../okhttp3/sample/OkHttpContributors.java | 2 +- 50 files changed, 176 insertions(+), 176 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e84312ab5349..aa5383cbef53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -767,14 +767,14 @@ release is the version name. ## Version 4.x -See [4.x Change log](https://square.github.io/okhttp/changelogs/changelog_4x/) for the legacy version changelogs. +See [4.x Change log](https://lysine.dev/okhttp/changelogs/changelog_4x/) for the legacy version changelogs. [GraalVM]: https://www.graalvm.org/ [Gradle module metadata]: https://docs.gradle.org/current/userguide/publishing_gradle_module_metadata.html [HTTP 101]: https://httpwg.org/specs/rfc9110.html#status.101 [JPMS]: https://openjdk.org/projects/jigsaw/spec/ [Ktor]: https://ktor.io/ -[Retrofit]: https://square.github.io/retrofit/ +[Retrofit]: https://lysine.dev/retrofit/ [ZSTD-KMP]: https://github.com/square/zstd-kmp [androidx_startup]: https://developer.android.com/jetpack/androidx/releases/startup [annotation_1_9_1]: https://developer.android.com/jetpack/androidx/releases/annotation#annotation-1.9.1 @@ -800,21 +800,21 @@ See [4.x Change log](https://square.github.io/okhttp/changelogs/changelog_4x/) f [kotlin_2_2_20]: https://github.com/JetBrains/kotlin/releases/tag/v2.2.20 [kotlin_2_2_21]: https://github.com/JetBrains/kotlin/releases/tag/v2.2.21 [loom]: https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html -[okio_2_9_0]: https://square.github.io/okio/changelog/#version-290 -[okio_3_0_0]: https://square.github.io/okio/changelog/#version-300 -[okio_3_12_0]: https://square.github.io/okio/changelog/#version-3120 -[okio_3_13_0]: https://square.github.io/okio/changelog/#version-3130 -[okio_3_15_0]: https://square.github.io/okio/changelog/#version-3150 -[okio_3_16_0]: https://square.github.io/okio/changelog/#version-3160 -[okio_3_16_1]: https://square.github.io/okio/changelog/#version-3161 -[okio_3_16_2]: https://square.github.io/okio/changelog/#version-3162 -[okio_3_16_3]: https://square.github.io/okio/changelog/#version-3163 -[okio_3_16_4]: https://square.github.io/okio/changelog/#version-3164 -[okio_3_17_0]: https://square.github.io/okio/changelog/#version-3170 -[okio_3_1_0]: https://square.github.io/okio/changelog/#version-310 -[okio_3_2_0]: https://square.github.io/okio/changelog/#version-320 -[okio_3_7_0]: https://square.github.io/okio/changelog/#version-370 -[okio_3_9_0]: https://square.github.io/okio/changelog/#version-390 +[okio_2_9_0]: https://lysine.dev/okio/changelog/#version-290 +[okio_3_0_0]: https://lysine.dev/okio/changelog/#version-300 +[okio_3_12_0]: https://lysine.dev/okio/changelog/#version-3120 +[okio_3_13_0]: https://lysine.dev/okio/changelog/#version-3130 +[okio_3_15_0]: https://lysine.dev/okio/changelog/#version-3150 +[okio_3_16_0]: https://lysine.dev/okio/changelog/#version-3160 +[okio_3_16_1]: https://lysine.dev/okio/changelog/#version-3161 +[okio_3_16_2]: https://lysine.dev/okio/changelog/#version-3162 +[okio_3_16_3]: https://lysine.dev/okio/changelog/#version-3163 +[okio_3_16_4]: https://lysine.dev/okio/changelog/#version-3164 +[okio_3_17_0]: https://lysine.dev/okio/changelog/#version-3170 +[okio_3_1_0]: https://lysine.dev/okio/changelog/#version-310 +[okio_3_2_0]: https://lysine.dev/okio/changelog/#version-320 +[okio_3_7_0]: https://lysine.dev/okio/changelog/#version-370 +[okio_3_9_0]: https://lysine.dev/okio/changelog/#version-390 [rfc_8305]: https://tools.ietf.org/html/rfc8305 [startup_1_2_0]: https://developer.android.com/jetpack/androidx/releases/startup#1.2.0 [uts46]: https://www.unicode.org/reports/tr46 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fc39415f16da..ed83e302a99e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,9 +54,9 @@ Committer's Guides * [Releasing][releasing] [cla]: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1 - [concurrency]: https://square.github.io/okhttp/concurrency/ - [debug_logging]: https://square.github.io/okhttp/debug_logging/ - [releasing]: https://square.github.io/okhttp/releasing/ - [security]: https://square.github.io/okhttp/security/ - [works_with_okhttp]: https://square.github.io/okhttp/works_with_okhttp/ - [okhttp_build]: https://github.com/square/okhttp/blob/master/okhttp/build.gradle + [concurrency]: https://lysine.dev/okhttp/concurrency/ + [debug_logging]: https://lysine.dev/okhttp/debug_logging/ + [releasing]: https://lysine.dev/okhttp/releasing/ + [security]: https://lysine.dev/okhttp/security/ + [works_with_okhttp]: https://lysine.dev/okhttp/works_with_okhttp/ + [okhttp_build]: https://github.com/lysine-dev/okhttp/blob/master/okhttp/build.gradle.kts diff --git a/README.md b/README.md index b6c6f43b9c3d..4b20b4cd632b 100644 --- a/README.md +++ b/README.md @@ -266,16 +266,16 @@ limitations under the License. [GraalVM]: https://www.graalvm.org/ [androidx_startup]: https://developer.android.com/jetpack/androidx/releases/startup [bom]: https://docs.gradle.org/6.2/userguide/platforms.html#sub:bom_import - [changelog]: https://square.github.io/okhttp/changelog/ + [changelog]: https://lysine.dev/okhttp/changelog/ [conscrypt]: https://github.com/google/conscrypt/ - [get_example]: https://raw.github.com/square/okhttp/master/samples/guide/src/main/java/okhttp3/guide/GetExample.java + [get_example]: https://raw.github.com/lysine-dev/okhttp/master/samples/guide/src/main/java/okhttp3/guide/GetExample.java [kotlin]: https://kotlinlang.org/ - [okhttp3_pro]: https://raw.githubusercontent.com/square/okhttp/master/okhttp/src/main/resources/META-INF/proguard/okhttp3.pro - [okhttp]: https://square.github.io/okhttp/ - [okhttp_312x]: https://github.com/square/okhttp/tree/okhttp_3.12.x - [okio]: https://github.com/square/okio - [post_example]: https://raw.github.com/square/okhttp/master/samples/guide/src/main/java/okhttp3/guide/PostExample.java - [r8_proguard]: https://square.github.io/okhttp/features/r8_proguard/ - [recipes]: https://square.github.io/okhttp/recipes/ + [okhttp3_pro]: https://raw.githubusercontent.com/lysine-dev/okhttp/master/okhttp/okhttp3.pro + [okhttp]: https://lysine.dev/okhttp/ + [okhttp_312x]: https://github.com/lysine-dev/okhttp/tree/okhttp_3.12.x + [okio]: https://github.com/lysine-dev/okio + [post_example]: https://raw.github.com/lysine-dev/okhttp/master/samples/guide/src/main/java/okhttp3/guide/PostExample.java + [r8_proguard]: https://lysine.dev/okhttp/features/r8_proguard/ + [recipes]: https://lysine.dev/okhttp/recipes/ [snap]: https://s01.oss.sonatype.org/content/repositories/snapshots/ - [tls_history]: https://square.github.io/okhttp/tls_configuration_history/ + [tls_history]: https://lysine.dev/okhttp/tls_configuration_history/ diff --git a/android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt b/android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt index f3c145008210..edee36653377 100644 --- a/android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt +++ b/android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt @@ -35,7 +35,7 @@ open class MainActivity : ComponentActivity() { // Ensure we are compiling against the right variant println(AndroidPlatform.isSupported) - val url = "https://github.com/square/okhttp".toHttpUrl() + val url = "https://github.com/lysine-dev/okhttp".toHttpUrl() println(url.topPrivateDomain()) client.newCall(Request(url)).enqueue( diff --git a/android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt b/android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt index 3f02f6107ad2..6daa19a8926c 100644 --- a/android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt +++ b/android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt @@ -883,7 +883,7 @@ class OkHttpTest { client.newCall(request).execute().close() // Hopefully this passes } catch (ioe: IOException) { - // https://github.com/square/okhttp/issues/5840 + // https://github.com/lysine-dev/okhttp/issues/5840 when (ioe.cause) { is IllegalArgumentException -> { assertEquals("Android internal error", ioe.message) diff --git a/android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt b/android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt index b75225373bcf..b8dc21214382 100644 --- a/android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt +++ b/android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt @@ -53,7 +53,7 @@ class StrictModeTest { applyStrictMode() // Not currently safe - // See https://github.com/square/okhttp/pull/8248 + // See https://github.com/lysine-dev/okhttp/pull/8248 OkHttpClient() assertThat(violations).hasSize(1) diff --git a/build-logic/src/main/kotlin/okhttp.publish-conventions.gradle.kts b/build-logic/src/main/kotlin/okhttp.publish-conventions.gradle.kts index 080fc1ab4911..26d19a05a4d8 100644 --- a/build-logic/src/main/kotlin/okhttp.publish-conventions.gradle.kts +++ b/build-logic/src/main/kotlin/okhttp.publish-conventions.gradle.kts @@ -36,7 +36,7 @@ configure { pom { name.set(project.name) description.set("Square’s meticulous HTTP client for Java and Kotlin.") - url.set("https://square.github.io/okhttp/") + url.set("https://lysine.dev/okhttp/") licenses { license { name.set("The Apache Software License, Version 2.0") @@ -45,9 +45,9 @@ configure { } } scm { - connection.set("scm:git:https://github.com/square/okhttp.git") - developerConnection.set("scm:git:ssh://git@github.com/square/okhttp.git") - url.set("https://github.com/square/okhttp") + connection.set("scm:git:https://github.com/lysine-dev/okhttp.git") + developerConnection.set("scm:git:ssh://git@github.com/lysine-dev/okhttp.git") + url.set("https://github.com/lysine-dev/okhttp") } developers { developer { diff --git a/docs/changelogs/changelog_4x.md b/docs/changelogs/changelog_4x.md index 6019c35da441..f580cce6eced 100644 --- a/docs/changelogs/changelog_4x.md +++ b/docs/changelogs/changelog_4x.md @@ -572,14 +572,14 @@ _2019-06-03_ ## Version 3.x -[Change log](https://square.github.io/okhttp/changelog_3x/) +[Change log](https://lysine.dev/okhttp/changelog_3x/) [bom]: https://docs.gradle.org/6.2/userguide/platforms.html#sub:bom_import [bouncy_castle_releases]: https://www.bouncycastle.org/releasenotes.html [CVE-2021-0341]: https://nvd.nist.gov/vuln/detail/CVE-2021-0341 [CVE-2022-24329]: https://nvd.nist.gov/vuln/detail/CVE-2022-24329 - [dev_server]: https://github.com/square/okhttp/blob/482f88300f78c3419b04379fc26c3683c10d6a9d/samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt + [dev_server]: https://github.com/lysine-dev/okhttp/blob/482f88300f78c3419b04379fc26c3683c10d6a9d/samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt [fun_interface]: https://kotlinlang.org/docs/reference/fun-interfaces.html [iana_websocket]: https://www.iana.org/assignments/websocket/websocket.txt [jetty_8_252]: https://webtide.com/jetty-alpn-java-8u252/ @@ -589,15 +589,15 @@ _2019-06-03_ [kotlin_1_8_21]: https://github.com/JetBrains/kotlin/releases/tag/v1.8.21 [legacy_interceptor]: https://gist.github.com/swankjesse/80135f4e03629527e723ab3bcf64be0b [okhttp4_blog_post]: https://cashapp.github.io/2019-06-26/okhttp-4-goes-kotlin - [okio.FileSystem]: https://square.github.io/okio/file_system/ - [okio_2_6_0]: https://square.github.io/okio/changelog/#version-260 - [okio_2_7_0]: https://square.github.io/okio/changelog/#version-270 - [okio_3_0_0]: https://square.github.io/okio/changelog/#version-300 - [okio_3_2_0]: https://square.github.io/okio/changelog/#version-320 - [okio_3_6_0]: https://square.github.io/okio/changelog/#version-360 + [okio.FileSystem]: https://lysine.dev/okio/file_system/ + [okio_2_6_0]: https://lysine.dev/okio/changelog/#version-260 + [okio_2_7_0]: https://lysine.dev/okio/changelog/#version-270 + [okio_3_0_0]: https://lysine.dev/okio/changelog/#version-300 + [okio_3_2_0]: https://lysine.dev/okio/changelog/#version-320 + [okio_3_6_0]: https://lysine.dev/okio/changelog/#version-360 [public_suffix]: https://publicsuffix.org/ [rfc_2045]: https://tools.ietf.org/html/rfc2045 [rfc_7231_647]: https://tools.ietf.org/html/rfc7231#section-6.4.7 [rfc_7692]: https://tools.ietf.org/html/rfc7692 [semver]: https://semver.org/ - [upgrading_to_okhttp_4]: https://square.github.io/okhttp/upgrading_to_okhttp_4/ + [upgrading_to_okhttp_4]: https://lysine.dev/okhttp/upgrading_to_okhttp_4/ diff --git a/docs/contribute/contributing.md b/docs/contribute/contributing.md index fc39415f16da..ed83e302a99e 100644 --- a/docs/contribute/contributing.md +++ b/docs/contribute/contributing.md @@ -54,9 +54,9 @@ Committer's Guides * [Releasing][releasing] [cla]: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1 - [concurrency]: https://square.github.io/okhttp/concurrency/ - [debug_logging]: https://square.github.io/okhttp/debug_logging/ - [releasing]: https://square.github.io/okhttp/releasing/ - [security]: https://square.github.io/okhttp/security/ - [works_with_okhttp]: https://square.github.io/okhttp/works_with_okhttp/ - [okhttp_build]: https://github.com/square/okhttp/blob/master/okhttp/build.gradle + [concurrency]: https://lysine.dev/okhttp/concurrency/ + [debug_logging]: https://lysine.dev/okhttp/debug_logging/ + [releasing]: https://lysine.dev/okhttp/releasing/ + [security]: https://lysine.dev/okhttp/security/ + [works_with_okhttp]: https://lysine.dev/okhttp/works_with_okhttp/ + [okhttp_build]: https://github.com/lysine-dev/okhttp/blob/master/okhttp/build.gradle.kts diff --git a/docs/contribute/debug_logging.md b/docs/contribute/debug_logging.md index cdb0912cec2e..0090c0bb1f54 100644 --- a/docs/contribute/debug_logging.md +++ b/docs/contribute/debug_logging.md @@ -38,7 +38,7 @@ This logs inbound (`<<`) and outbound (`>>`) frames for HTTP/2 connections. [2020-01-01 00:00:05] << 0x00000000 8 GOAWAY ``` -### Task Runner Logging +### Task Runner Logging This logs task enqueues, starts, and finishes. @@ -59,4 +59,4 @@ This logs task enqueues, starts, and finishes. [2020-01-01 00:00:00] Q10000 finished run in 739 µs: OkHttp ConnectionPool ``` -[OkHttpDebugLogging.kt]: https://github.com/square/okhttp/blob/master/okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpDebugLogging.kt +[OkHttpDebugLogging.kt]: https://github.com/lysine-dev/okhttp/blob/master/okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpDebugLogging.kt diff --git a/docs/features/caching.md b/docs/features/caching.md index df4402ff198a..d7c6ced64a57 100644 --- a/docs/features/caching.md +++ b/docs/features/caching.md @@ -102,4 +102,4 @@ Make sure you are reading responses fully as unless they are read fully, cancell ### Overriding normal cache behaviour -See [`Cache`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-cache/) documentation. +See [`Cache`](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-cache/) documentation. diff --git a/docs/features/calls.md b/docs/features/calls.md index 63b15b7b3e51..b3983044c2f4 100644 --- a/docs/features/calls.md +++ b/docs/features/calls.md @@ -2,11 +2,11 @@ The HTTP client’s job is to accept your request and produce its response. This is simple in theory but it gets tricky in practice. -## [Requests](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-request/) +## [Requests](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-request/) Each HTTP request contains a URL, a method (like `GET` or `POST`), and a list of headers. Requests may also contain a body: a data stream of a specific content type. -## [Responses](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-response/) +## [Responses](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-response/) The response answers the request with a code (like 200 for success or 404 for not found), headers, and its own optional body. @@ -28,20 +28,20 @@ If a conditional GET was successful, responses from the network and cache are me When your requested URL has moved, the webserver will return a response code like `302` to indicate the document’s new URL. OkHttp will follow the redirect to retrieve a final response. -If the response issues an authorization challenge, OkHttp will ask the [`Authenticator`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-authenticator/) (if one is configured) to satisfy the challenge. If the authenticator supplies a credential, the request is retried with that credential included. +If the response issues an authorization challenge, OkHttp will ask the [`Authenticator`](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-authenticator/) (if one is configured) to satisfy the challenge. If the authenticator supplies a credential, the request is retried with that credential included. ## Retrying Requests Sometimes connections fail: either a pooled connection was stale and disconnected, or the webserver itself couldn’t be reached. OkHttp will retry the request with a different route if one is available. -## [Calls](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-call/) +## [Calls](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-call/) With rewrites, redirects, follow-ups and retries, your simple request may yield many requests and responses. OkHttp uses `Call` to model the task of satisfying your request through however many intermediate requests and responses are necessary. Typically this isn’t many! But it’s comforting to know that your code will continue to work if your URLs are redirected or if you failover to an alternate IP address. Calls are executed in one of two ways: * **Synchronous:** your thread blocks until the response is readable. - * **Asynchronous:** you enqueue the request on any thread, and get [called back](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-callback/) on another thread when the response is readable. + * **Asynchronous:** you enqueue the request on any thread, and get [called back](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-callback/) on another thread when the response is readable. Calls can be canceled from any thread. This will fail the call if it hasn’t yet completed! Code that is writing the request body or reading the response body will suffer an `IOException` when its call is canceled. @@ -49,4 +49,4 @@ Calls can be canceled from any thread. This will fail the call if it hasn’t ye For synchronous calls, you bring your own thread and are responsible for managing how many simultaneous requests you make. Too many simultaneous connections wastes resources; too few harms latency. -For asynchronous calls, [`Dispatcher`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-dispatcher/) implements policy for maximum simultaneous requests. You can set maximums per-webserver (default is 5), and overall (default is 64). +For asynchronous calls, [`Dispatcher`](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-dispatcher/) implements policy for maximum simultaneous requests. You can set maximums per-webserver (default is 5), and overall (default is 64). diff --git a/docs/features/connections.md b/docs/features/connections.md index 8fb0741acd01..1cc5ea3825a0 100644 --- a/docs/features/connections.md +++ b/docs/features/connections.md @@ -3,26 +3,26 @@ Connections Although you provide only the URL, OkHttp plans its connection to your webserver using three types: URL, Address, and Route. -### [URLs](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-http-url/) +### [URLs](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-http-url/) -URLs (like `https://github.com/square/okhttp`) are fundamental to HTTP and the Internet. In addition to being a universal, decentralized naming scheme for everything on the web, they also specify how to access web resources. +URLs (like `https://github.com/lysine-dev/okhttp`) are fundamental to HTTP and the Internet. In addition to being a universal, decentralized naming scheme for everything on the web, they also specify how to access web resources. URLs are abstract: * They specify that the call may be plaintext (`http`) or encrypted (`https`), but not which cryptographic algorithms should be used. Nor do they specify how to verify the peer's certificates (the [HostnameVerifier](https://developer.android.com/reference/javax/net/ssl/HostnameVerifier.html)) or which certificates can be trusted (the [SSLSocketFactory](https://developer.android.com/reference/org/apache/http/conn/ssl/SSLSocketFactory.html)). * They don't specify whether a specific proxy server should be used or how to authenticate with that proxy server. -They're also concrete: each URL identifies a specific path (like `/square/okhttp`) and query (like `?q=sharks&lang=en`). Each webserver hosts many URLs. +They're also concrete: each URL identifies a specific path (like `/lysine-dev/okhttp`) and query (like `?q=sharks&lang=en`). Each webserver hosts many URLs. -### [Addresses](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-address/) +### [Addresses](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-address/) Addresses specify a webserver (like `github.com`) and all of the **static** configuration necessary to connect to that server: the port number, HTTPS settings, and preferred network protocols (like HTTP/2). -URLs that share the same address may also share the same underlying TCP socket connection. Sharing a connection has substantial performance benefits: lower latency, higher throughput (due to [TCP slow start](https://www.igvita.com/2011/10/20/faster-web-vs-tcp-slow-start/)) and conserved battery. OkHttp uses a [ConnectionPool](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-connection-pool/) that automatically reuses HTTP/1.x connections and multiplexes HTTP/2 connections. +URLs that share the same address may also share the same underlying TCP socket connection. Sharing a connection has substantial performance benefits: lower latency, higher throughput (due to [TCP slow start](https://www.igvita.com/2011/10/20/faster-web-vs-tcp-slow-start/)) and conserved battery. OkHttp uses a [ConnectionPool](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-connection-pool/) that automatically reuses HTTP/1.x connections and multiplexes HTTP/2 connections. -In OkHttp some fields of the address come from the URL (scheme, hostname, port) and the rest come from the [OkHttpClient](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/). +In OkHttp some fields of the address come from the URL (scheme, hostname, port) and the rest come from the [OkHttpClient](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-ok-http-client/). -### [Routes](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-route/) +### [Routes](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-route/) Routes supply the **dynamic** information necessary to actually connect to a webserver. This is the specific IP address to attempt (as discovered by a DNS query), the exact proxy server to use (if a [ProxySelector](https://developer.android.com/reference/java/net/ProxySelector.html) is in use), and which version of TLS to negotiate (for HTTPS connections). @@ -30,10 +30,10 @@ There may be many routes for a single address. For example, a webserver that is In limited situations OkHttp will retry a route if connecting fails: - * When making an HTTPS connection through an HTTP proxy, the proxy may issue an authentication challenge. OkHttp will call the proxy [authenticator](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-authenticator/) and try again. - * When making TLS connections with multiple [connection specs](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-connection-spec/), these are attempted in sequence until the TLS handshake succeeds. + * When making an HTTPS connection through an HTTP proxy, the proxy may issue an authentication challenge. OkHttp will call the proxy [authenticator](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-authenticator/) and try again. + * When making TLS connections with multiple [connection specs](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-connection-spec/), these are attempted in sequence until the TLS handshake succeeds. -### [Connections](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-connection/) +### [Connections](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-connection/) When you request a URL with OkHttp, here's what it does: @@ -47,7 +47,7 @@ If there's a problem with the connection, OkHttp will select another route and t Once the response has been received, the connection will be returned to the pool so it can be reused for a future request. Connections are evicted from the pool after a period of inactivity. -### [Fast Fallback](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/fast-fallback) +### [Fast Fallback](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/fast-fallback) Since version 5.0, `OkHttpClient` supports fast fallback, which is our implementation of Happy Eyeballs [RFC 6555](https://datatracker.ietf.org/doc/html/rfc6555). diff --git a/docs/features/events.md b/docs/features/events.md index b50644e11982..e59df56f557a 100644 --- a/docs/features/events.md +++ b/docs/features/events.md @@ -8,11 +8,11 @@ Events allow you to capture metrics on your application’s HTTP calls. Use even ### EventListener -Subclass [EventListener](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-event-listener/) and override methods for the events you are interested in. In a successful HTTP call with no redirects or retries the sequence of events is described by this flow. +Subclass [EventListener](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-event-listener/) and override methods for the events you are interested in. In a successful HTTP call with no redirects or retries the sequence of events is described by this flow. ![Events Diagram](../assets/images/events@2x.png) -Here’s a [sample event listener](https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java) that prints each event with a timestamp. +Here’s a [sample event listener](https://github.com/lysine-dev/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java) that prints each event with a timestamp. ```java class PrintingEventListener extends EventListener { @@ -106,7 +106,7 @@ Notice how no connect events are fired for the second call. It reused the connec In the preceding example we used a field, `callStartNanos`, to track the elapsed time of each event. This is handy, but it won’t work if multiple calls are executing concurrently. To accommodate this, use a `Factory` to create a new `EventListener` instance for each `Call`. This allows each listener to keep call-specific state. -This [sample factory](https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java) creates a unique ID for each call and uses that ID to differentiate calls in log messages. +This [sample factory](https://github.com/lysine-dev/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java) creates a unique ID for each call and uses that ID to differentiate calls in log messages. ```java class PrintingEventListener extends EventListener { diff --git a/docs/features/https.md b/docs/features/https.md index c144a7d20e4b..40e79eb5561b 100644 --- a/docs/features/https.md +++ b/docs/features/https.md @@ -6,9 +6,9 @@ OkHttp attempts to balance two competing concerns: * **Connectivity** to as many hosts as possible. That includes advanced hosts that run the latest versions of [boringssl](https://boringssl.googlesource.com/boringssl/) and less out of date hosts running older versions of [OpenSSL](https://www.openssl.org/). * **Security** of the connection. This includes verification of the remote webserver with certificates and the privacy of data exchanged with strong ciphers. -When negotiating a connection to an HTTPS server, OkHttp needs to know which [TLS versions](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-tls-version/) and [cipher suites](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-cipher-suite/) to offer. A client that wants to maximize connectivity would include obsolete TLS versions and weak-by-design cipher suites. A strict client that wants to maximize security would be limited to only the latest TLS version and strongest cipher suites. +When negotiating a connection to an HTTPS server, OkHttp needs to know which [TLS versions](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-tls-version/) and [cipher suites](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-cipher-suite/) to offer. A client that wants to maximize connectivity would include obsolete TLS versions and weak-by-design cipher suites. A strict client that wants to maximize security would be limited to only the latest TLS version and strongest cipher suites. -Specific security vs. connectivity decisions are implemented by [ConnectionSpec](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-connection-spec/). OkHttp includes four built-in connection specs: +Specific security vs. connectivity decisions are implemented by [ConnectionSpec](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-connection-spec/). OkHttp includes four built-in connection specs: * `RESTRICTED_TLS` is a secure configuration, intended to meet stricter compliance requirements. * `MODERN_TLS` is a secure configuration that connects to modern HTTPS servers. @@ -68,7 +68,7 @@ and increase connectivity with web servers. By default, OkHttp trusts the certificate authorities of the host platform. This strategy maximizes connectivity, but it is subject to certificate authority attacks such as the [2011 DigiNotar attack](https://www.computerworld.com/article/2510951/cybercrime-hacking/hackers-spied-on-300-000-iranians-using-fake-google-certificate.html). It also assumes your HTTPS servers’ certificates are signed by a certificate authority. -Use [CertificatePinner](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-certificate-pinner/) to restrict which certificates and certificate authorities are trusted. Certificate pinning increases security, but limits your server team’s abilities to update their TLS certificates. **Do not use certificate pinning without the blessing of your server’s TLS administrator!** +Use [CertificatePinner](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-certificate-pinner/) to restrict which certificates and certificate authorities are trusted. Certificate pinning increases security, but limits your server team’s abilities to update their TLS certificates. **Do not use certificate pinning without the blessing of your server’s TLS administrator!** === ":material-language-kotlin: Kotlin" ```kotlin @@ -204,9 +204,9 @@ The full code sample shows how to replace the host platform’s certificate auth } ``` - [CustomTrustJava]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/CustomTrust.java - [CustomTrustKotlin]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt - [CertificatePinningJava]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java - [CertificatePinningKotlin]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt + [CustomTrustJava]: https://github.com/lysine-dev/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/CustomTrust.java + [CustomTrustKotlin]: https://github.com/lysine-dev/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt + [CertificatePinningJava]: https://github.com/lysine-dev/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java + [CertificatePinningKotlin]: https://github.com/lysine-dev/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt [provider_installer]: https://developer.android.com/training/articles/security-gms-provider [qualys]: https://www.ssllabs.com/ssltest/ diff --git a/docs/features/r8_proguard.md b/docs/features/r8_proguard.md index 1e6569f6e646..4bebdbc95456 100644 --- a/docs/features/r8_proguard.md +++ b/docs/features/r8_proguard.md @@ -9,5 +9,5 @@ interpreted by R8 automatically. If you, however, don't use R8 you have to apply the rules from [this file][okhttp3_pro]. You might also need rules from [Okio][okio] which is a dependency of this library. - [okhttp3_pro]: https://raw.githubusercontent.com/square/okhttp/master/okhttp/okhttp3.pro - [okio]: https://square.github.io/okio/ + [okhttp3_pro]: https://raw.githubusercontent.com/lysine-dev/okhttp/master/okhttp/okhttp3.pro + [okio]: https://lysine.dev/okio/ diff --git a/docs/releasing.md b/docs/releasing.md index a01c6d254229..ee62827514f0 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -36,4 +36,4 @@ Releasing 4. Wait for [GitHub Actions][github_actions] to build and promote the release. -[github_actions]: https://github.com/square/okhttp/actions +[github_actions]: https://github.com/lysine-dev/okhttp/actions diff --git a/docs/security/tls_configuration_history.md b/docs/security/tls_configuration_history.md index f419697088c1..dc26f8b7a77b 100644 --- a/docs/security/tls_configuration_history.md +++ b/docs/security/tls_configuration_history.md @@ -250,13 +250,13 @@ Cipher suites that are only available with TLSv1.3. Cipher suites that are [discouraged for use][http2_denylist] with HTTP/2. OkHttp includes them because better suites are not commonly available. For example, none of the better cipher suites listed above shipped with Android 4.4 or Java 7. -[OkHttp30]: https://square.github.io/okhttp/changelog_3x/#version-300 -[OkHttp310]: https://square.github.io/okhttp/changelog_3x/#version-310 -[OkHttp311]: https://square.github.io/okhttp/changelog_3x/#version-320 -[OkHttp312]: https://square.github.io/okhttp/changelog_3x/#version-330 -[OkHttp313]: https://square.github.io/okhttp/changelog_3x/#version-340 -[OkHttp314]: https://square.github.io/okhttp/changelog_3x/#version-310 -[OkHttp35]: https://square.github.io/okhttp/changelog_3x/#version-350 +[OkHttp30]: https://lysine.dev/okhttp/changelog_3x/#version-300 +[OkHttp310]: https://lysine.dev/okhttp/changelog_3x/#version-310 +[OkHttp311]: https://lysine.dev/okhttp/changelog_3x/#version-320 +[OkHttp312]: https://lysine.dev/okhttp/changelog_3x/#version-330 +[OkHttp313]: https://lysine.dev/okhttp/changelog_3x/#version-340 +[OkHttp314]: https://lysine.dev/okhttp/changelog_3x/#version-310 +[OkHttp35]: https://lysine.dev/okhttp/changelog_3x/#version-350 [chromium_change]: https://developers.google.com/web/updates/2016/12/chrome-56-deprecations#remove_cbc-mode_ecdsa_ciphers_in_tls [googlecloud_ssl_policy]: https://cloud.google.com/load-balancing/docs/ssl-policies-concepts [http2_denylist]: https://tools.ietf.org/html/rfc7540#appendix-A diff --git a/mkdocs.yml b/mkdocs.yml index 2490b3e5dd3b..9d1c663ad745 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,7 +1,7 @@ site_name: OkHttp -site_url: https://square.github.io/okhttp/ +site_url: https://lysine.dev/okhttp/ repo_name: OkHttp -repo_url: https://github.com/square/okhttp +repo_url: https://github.com/lysine-dev/okhttp site_description: "Square’s meticulous HTTP client for the JVM, Android, and GraalVM" site_author: Square, Inc. remote_branch: gh-pages diff --git a/okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt b/okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt index 9adf56dba2b2..5913600873c5 100644 --- a/okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt +++ b/okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt @@ -86,7 +86,7 @@ open class AndroidSocketAdapter( } catch (e: IllegalAccessException) { throw AssertionError(e) } catch (e: InvocationTargetException) { - // https://github.com/square/okhttp/issues/5587 + // https://github.com/lysine-dev/okhttp/issues/5587 val cause = e.cause when { cause is NullPointerException && cause.message == "ssl == null" -> null diff --git a/okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt b/okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt index 2feacc26963b..01737fb82e1b 100644 --- a/okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt +++ b/okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt @@ -42,7 +42,7 @@ import okhttp3.internal.intersect * because the TLS ecosystem is dynamic and staying up to date is necessary to stay secure. See * [OkHttp's TLS Configuration History][tls_history] to track these changes. * - * [tls_history]: https://square.github.io/okhttp/tls_configuration_history/ + * [tls_history]: https://lysine.dev/okhttp/tls_configuration_history/ */ class ConnectionSpec internal constructor( @get:JvmName("isTls") val isTls: Boolean, diff --git a/okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt b/okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt index 646c698437e2..88979aa397d2 100644 --- a/okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt +++ b/okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt @@ -131,7 +131,7 @@ import okhttp3.internal.url.percentDecode * ### Path * * The path identifies a specific resource on the host. Paths have a hierarchical structure like - * "/square/okhttp/issues/1486" and decompose into a list of segments like `["square", "okhttp", + * "/lysine-dev/okhttp/issues/1486" and decompose into a list of segments like `["square", "okhttp", * "issues", "1486"]`. * * This class offers methods to compose and decompose paths by segment. It composes each path diff --git a/okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt b/okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt index e90421ccdc44..9fe3bbbd2008 100644 --- a/okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt +++ b/okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt @@ -282,7 +282,7 @@ class ConnectPlan internal constructor( // The following try/catch block is a pseudo hacky way to get around a crash on Android 7.0 // More details: - // https://github.com/square/okhttp/issues/3245 + // https://github.com/lysine-dev/okhttp/issues/3245 // https://android-review.googlesource.com/#/c/271775/ try { this.socket = rawSocket.asBufferedSocket() diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt index 238a02499fef..fdb6fe1e2b85 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt @@ -427,7 +427,7 @@ class CacheTest { * CacheInterceptor writes it to disk. This creates the bug condition: url.isHttps=true * but handshake=null. Before the fix, `handshake!!` in writeTo() threw NPE. * - * https://github.com/square/okhttp/issues/8962 + * https://github.com/lysine-dev/okhttp/issues/8962 */ @Test fun httpsResponseWithNullHandshakeDoesNotCrashWriteTo() { @@ -464,7 +464,7 @@ class CacheTest { * Verifies the null-handshake fix holds across multiple sequential cache writes, confirming * it is not a one-time race condition. * - * https://github.com/square/okhttp/issues/8962 + * https://github.com/lysine-dev/okhttp/issues/8962 */ @Test fun multipleHttpsRequestsWithNullHandshakeAllSucceed() { @@ -506,7 +506,7 @@ class CacheTest { * unreadable on re-read. The response should still succeed but won't be served from cache * on subsequent requests. * - * https://github.com/square/okhttp/issues/8962 + * https://github.com/lysine-dev/okhttp/issues/8962 */ @Test fun httpsResponseWithNullHandshakeIsNotServedFromCache() { @@ -860,7 +860,7 @@ class CacheTest { * to the cache because we incorrectly assumed that HttpsURLConnection was always HTTPS and * HttpURLConnection was always HTTP; in practice redirects mean that each can do either. * - * https://github.com/square/okhttp/issues/214 + * https://github.com/lysine-dev/okhttp/issues/214 */ @Test fun secureResponseCachingAndProtocolRedirects() { @@ -1000,7 +1000,7 @@ class CacheTest { assertThat(get(url).body.string()).isEqualTo("b") } - /** https://github.com/square/okhttp/issues/2198 */ + /** https://github.com/lysine-dev/okhttp/issues/2198 */ @Test fun cachedRedirect() { server.enqueue( @@ -1750,7 +1750,7 @@ class CacheTest { * its Last-Modified date is. This behavior was different prior to OkHttp 3.5 when we would prefer * the response with the later Last-Modified date. * - * https://github.com/square/okhttp/issues/2886 + * https://github.com/lysine-dev/okhttp/issues/2886 */ @Test fun serverReturnsDocumentOlderThanCache() { @@ -1955,7 +1955,7 @@ class CacheTest { assertThat(get(server.url("/")).body.string()).isEqualTo("DEFDEFDEF") } - /** https://github.com/square/okhttp/issues/947 */ + /** https://github.com/lysine-dev/okhttp/issues/947 */ @Test fun gzipAndVaryOnAcceptEncoding() { server.enqueue( @@ -3288,7 +3288,7 @@ class CacheTest { * broke our cached response parser because it split on the first colon. This regression test * exists to help us read these old bad cache entries. * - * https://github.com/square/okhttp/issues/227 + * https://github.com/lysine-dev/okhttp/issues/227 */ @Test fun testGoldenCacheResponse() { @@ -3745,7 +3745,7 @@ CLEAN $urlKey ${entryMetadata.length} ${entryBody.length} } } - /** Test https://github.com/square/okhttp/issues/1712. */ + /** Test https://github.com/lysine-dev/okhttp/issues/1712. */ @Test fun conditionalMissUpdatesCache() { server.enqueue( diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt index 35c86efecd63..0dba02179336 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt @@ -469,7 +469,7 @@ open class CallTest { postBodyRetransmittedAfterAuthorizationFail("abc") } - /** Don't explode when resending an empty post. https://github.com/square/okhttp/issues/1131 */ + /** Don't explode when resending an empty post. https://github.com/lysine-dev/okhttp/issues/1131 */ @Test fun postEmptyBodyRetransmittedAfterAuthorizationFail() { postBodyRetransmittedAfterAuthorizationFail("") @@ -552,7 +552,7 @@ open class CallTest { /** * We had a bug where we were passing a null route to the authenticator. - * https://github.com/square/okhttp/issues/3809 + * https://github.com/lysine-dev/okhttp/issues/3809 */ @Test fun authenticateWithNoConnection() { @@ -877,7 +877,7 @@ open class CallTest { * Each OkHttpClient used to get its own instance of NullProxySelector, and because these weren't * equal their connections weren't pooled. That's a nasty performance bug! * - * https://github.com/square/okhttp/issues/5519 + * https://github.com/lysine-dev/okhttp/issues/5519 */ @Test fun connectionPoolingWithFreshClientSamePool() { @@ -1024,7 +1024,7 @@ open class CallTest { } } - /** https://github.com/square/okhttp/issues/442 */ + /** https://github.com/lysine-dev/okhttp/issues/442 */ @Test fun tlsTimeoutsNotRetried() { enableTls() @@ -1071,7 +1071,7 @@ open class CallTest { } } - /** https://github.com/square/okhttp/issues/4875 */ + /** https://github.com/lysine-dev/okhttp/issues/4875 */ @Test fun interceptorRecoversWhenRoutesExhausted() { server.enqueue(MockResponse.Builder().onRequestStart(CloseSocket()).build()) @@ -1094,7 +1094,7 @@ open class CallTest { .assertCode(200) } - /** https://github.com/square/okhttp/issues/4761 */ + /** https://github.com/lysine-dev/okhttp/issues/4761 */ @Test fun interceptorCallsProceedWithoutClosingPriorResponse() { server.enqueue( @@ -1148,7 +1148,7 @@ open class CallTest { .assertBody("success!") } - /** https://github.com/square/okhttp/issues/1801 */ + /** https://github.com/lysine-dev/okhttp/issues/1801 */ @Test fun asyncCallEngineInitialized() { val c = @@ -1622,7 +1622,7 @@ open class CallTest { @Test fun matchingPinnedCertificate() { - // Fails on 11.0.1 https://github.com/square/okhttp/issues/4703 + // Fails on 11.0.1 https://github.com/lysine-dev/okhttp/issues/4703 enableTls() server.enqueue(MockResponse()) server.enqueue(MockResponse()) @@ -3092,7 +3092,7 @@ open class CallTest { .assertRequestHeader("Accept-Encoding", "gzip") } - /** https://github.com/square/okhttp/issues/1927 */ + /** https://github.com/lysine-dev/okhttp/issues/1927 */ @Test fun gzipResponseAfterAuthenticationChallenge() { server.enqueue(MockResponse(code = 401)) @@ -3678,7 +3678,7 @@ open class CallTest { /** * We had a bug where OkHttp would crash if HTTP proxies returned a truncated response. - * https://github.com/square/okhttp/issues/5727 + * https://github.com/lysine-dev/okhttp/issues/5727 */ @Test fun proxyUpgradeFailsWithTruncatedResponse() { @@ -3784,7 +3784,7 @@ open class CallTest { /** * OkHttp has a bug where a `Connection: close` response header is not honored when establishing a - * TLS tunnel. https://github.com/square/okhttp/issues/2426 + * TLS tunnel. https://github.com/lysine-dev/okhttp/issues/2426 */ @Test fun proxyAuthenticateOnConnectWithConnectionClose() { @@ -4002,7 +4002,7 @@ open class CallTest { assertThat(challengeSchemes).containsExactly("OkHttp-Preemptive", "Basic") } - /** https://github.com/square/okhttp/issues/4915 */ + /** https://github.com/lysine-dev/okhttp/issues/4915 */ @Test @Disabled fun proxyDisconnectsAfterRequest() { @@ -4240,7 +4240,7 @@ open class CallTest { ) } - /** https://github.com/square/okhttp/issues/2344 */ + /** https://github.com/lysine-dev/okhttp/issues/2344 */ @Test fun ipv6HostHasSquareBracesHttp1() { configureClientAndServerProxies(http2 = false) @@ -4775,7 +4775,7 @@ open class CallTest { executeSynchronously("/").assertCode(200) } - /** https://github.com/square/okhttp/issues/4583 */ + /** https://github.com/lysine-dev/okhttp/issues/4583 */ @Test fun lateCancelCallsOnFailure() { server.enqueue( diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt index ec5f5ae21c3a..4a48ac813436 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt @@ -142,7 +142,7 @@ class CertificatePinnerKotlinTest { assertThat(certificatePinner.findMatchingPins("xn--khttp-fde.com")).isEqualTo(expectedPin) } - /** https://github.com/square/okhttp/issues/3324 */ + /** https://github.com/lysine-dev/okhttp/issues/3324 */ @Test fun checkSubstringMatch() { val certificatePinner = diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt index 24fe58bbe60a..3b25eab2a5c7 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt @@ -298,7 +298,7 @@ class ConnectionReuseTest { * * This test leaks a response body by not closing it. * - * https://github.com/square/okhttp/issues/2409 + * https://github.com/lysine-dev/okhttp/issues/2409 */ @Test fun connectionsAreNotReusedIfNetworkInterceptorInterferes() { diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt index b90cad9a37ff..d987762ffd46 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt @@ -1760,7 +1760,7 @@ class EventListenerTest( * the same delays make it back into the events. * * We've had bugs where we report an event when we request data rather than when the data actually - * arrives. https://github.com/square/okhttp/issues/5578 + * arrives. https://github.com/lysine-dev/okhttp/issues/5578 */ private fun timeToFirstByte() { val applicationInterceptorDelay = 250L diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt index 1307ecaaf8c3..b74743868ce6 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt @@ -266,7 +266,7 @@ class FastFallbackTest { * already had a healthy connection. It sets up a deferred connection by stalling the IPv6 * connect, and it sets up a same-connection retry with [ErrorCode.REFUSED_STREAM]. * - * https://github.com/square/okhttp/pull/7190 + * https://github.com/lysine-dev/okhttp/pull/7190 */ @Test fun preferCallConnectionOverDeferredConnection() { diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt index 076314d2a2e1..a8fa87e5efbd 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt @@ -24,7 +24,7 @@ import org.junit.jupiter.api.Disabled import org.junit.jupiter.api.Test class HeadersChallengesTest { - /** See https://github.com/square/okhttp/issues/2780. */ + /** See https://github.com/lysine-dev/okhttp/issues/2780. */ @Test fun testDigestChallengeWithStrictRfc2617Header() { val headers = Headers diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt index 217c6c14c48b..7126ca04b47f 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt @@ -39,7 +39,7 @@ open class HttpUrlJvmTest { /** * Strip unexpected characters when converting to URI (which is more strict). - * https://github.com/square/okhttp/issues/5667 + * https://github.com/lysine-dev/okhttp/issues/5667 */ @Test fun hostToUriStripsCharacters() { @@ -47,7 +47,7 @@ open class HttpUrlJvmTest { assertThat(httpUrl.toUri().toString()).isEqualTo("http://example.com/") } - /** Confirm that URI retains other characters. https://github.com/square/okhttp/issues/5236 */ + /** Confirm that URI retains other characters. https://github.com/lysine-dev/okhttp/issues/5236 */ @Test fun hostToUriStripsCharacters2() { val httpUrl = "http://\${tracker}/".toHttpUrl() @@ -331,7 +331,7 @@ open class HttpUrlJvmTest { assertThat("https://localhost".toHttpUrl().topPrivateDomain()).isNull() assertThat("https://127.0.0.1".toHttpUrl().topPrivateDomain()).isNull() - // https://github.com/square/okhttp/issues/6109 + // https://github.com/lysine-dev/okhttp/issues/6109 assertThat("http://a./".toHttpUrl().topPrivateDomain()).isNull() assertThat("http://squareup.com./".toHttpUrl().topPrivateDomain()) .isEqualTo("squareup.com") diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt index 41a0256cab2d..665d97301d7f 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt @@ -244,7 +244,7 @@ class ServerTruncatesRequestTest { } } - @Disabled("Follow up with fix in https://github.com/square/okhttp/issues/6853") + @Disabled("Follow up with fix in https://github.com/lysine-dev/okhttp/issues/6853") @Test fun serverDisconnectsBeforeSecondRequestHttp1() { enableProtocol(Protocol.HTTP_1_1) diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt index 760d3b6be484..b2320e806daa 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt @@ -110,7 +110,7 @@ class SocketChannelTest { } private fun testConnection(socketMode: SocketMode) { - // https://github.com/square/okhttp/pull/6554 + // https://github.com/lysine-dev/okhttp/pull/6554 assumeFalse( socketMode is TlsInstance && socketMode.socketMode == Channel && diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt index 5b85f6384bba..94f38eeb8777 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt @@ -706,7 +706,7 @@ class URLConnectionTest { * When a pooled connection fails, don't blame the route. Otherwise pooled connection failures can * cause unnecessary SSL fallbacks. * - * https://github.com/square/okhttp/issues/515 + * https://github.com/lysine-dev/okhttp/issues/515 */ @Test fun sslFallbackNotUsedWhenRecycledConnectionFails() { @@ -752,7 +752,7 @@ class URLConnectionTest { @Flaky @Test fun connectViaHttpsToUntrustedServer() { - // Flaky https://github.com/square/okhttp/issues/5222 + // Flaky https://github.com/lysine-dev/okhttp/issues/5222 server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue(MockResponse()) // unused assertFailsWith { @@ -1793,7 +1793,7 @@ class URLConnectionTest { postBodyRetransmittedAfterAuthorizationFail("abc") } - /** Don't explode when resending an empty post. https://github.com/square/okhttp/issues/1131 */ + /** Don't explode when resending an empty post. https://github.com/lysine-dev/okhttp/issues/1131 */ @Test fun postEmptyBodyRetransmittedAfterAuthorizationFail() { postBodyRetransmittedAfterAuthorizationFail("") @@ -2302,7 +2302,7 @@ class URLConnectionTest { } } - /** https://github.com/square/okhttp/issues/342 */ + /** https://github.com/lysine-dev/okhttp/issues/342 */ @Test fun authenticateRealmUppercase() { server.enqueue( @@ -4111,7 +4111,7 @@ class URLConnectionTest { /** * We had a bug where we attempted to gunzip responses that didn't have a body. This only came up * with 304s since that response code can include headers (like "Content-Encoding") without any - * content to go along with it. https://github.com/square/okhttp/issues/358 + * content to go along with it. https://github.com/lysine-dev/okhttp/issues/358 */ @Test fun noTransparentGzipFor304NotModified() { @@ -4140,7 +4140,7 @@ class URLConnectionTest { /** * We had a bug where we weren't closing Gzip streams on redirects. - * https://github.com/square/okhttp/issues/441 + * https://github.com/lysine-dev/okhttp/issues/441 */ @Test fun gzipWithRedirectAndConnectionReuse() { diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt index 163bc16e626a..0011adb0faba 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt @@ -364,7 +364,7 @@ class WholeOperationTimeoutTest { @Flaky @Test fun noTimeout() { - // Flaky https://github.com/square/okhttp/issues/5304 + // Flaky https://github.com/lysine-dev/okhttp/issues/5304 server.enqueue( MockResponse .Builder() diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt index 412547905564..a67e4d9c451f 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt @@ -1390,7 +1390,7 @@ class DiskLruCacheTest( /** * We had a bug where the cache was left in an inconsistent state after a journal write failed. - * https://github.com/square/okhttp/issues/1211 + * https://github.com/lysine-dev/okhttp/issues/1211 */ @Test fun journalWriteFailsDuringEditorCommit() { diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt index 1d41ccd14b03..08798a9b78ac 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt @@ -791,7 +791,7 @@ internal class FastFallbackExchangeFinderTest { * 3. plan 0 connects * 4. finish taking plan 1 * - * https://github.com/square/okhttp/issues/7152 + * https://github.com/lysine-dev/okhttp/issues/7152 */ @Test fun reusePlanAndNewConnectRace() { diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt index c1be7fbd8201..faa5db3fdd30 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt @@ -155,7 +155,7 @@ class RouteSelectorTest { /** * Don't call through to the proxy selector if we don't have a host name. - * https://github.com/square/okhttp/issues/5770 + * https://github.com/lysine-dev/okhttp/issues/5770 */ @Test fun proxySelectorNotCalledForNullHost() { // The string '>' is okay in a hostname in HttpUrl, which does very light hostname validation. diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt index a34fa2ee1791..9ed49aac2b3a 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt @@ -59,7 +59,7 @@ class StatusLineTest { assertThat(statusLine.code).isEqualTo(code) } - // https://github.com/square/okhttp/issues/386 + // https://github.com/lysine-dev/okhttp/issues/386 @Test fun shoutcast() { val statusLine = parse("ICY 200 OK") diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt index dd05b1f69242..a073f1d41b61 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt @@ -150,7 +150,7 @@ class Http2ConnectionTest { /** * Webservers may set the initial window size to zero, which is a special case because it means * that we have to flush headers immediately before any request body can be sent. - * https://github.com/square/okhttp/issues/2543 + * https://github.com/lysine-dev/okhttp/issues/2543 */ @Test fun peerSetsZeroFlowControl() { peer.setClient(true) @@ -488,7 +488,7 @@ class Http2ConnectionTest { * something worse (like an [IllegalStateException]. * * - * See https://github.com/square/okhttp/issues/1651 + * See https://github.com/lysine-dev/okhttp/issues/1651 */ @Test fun socketExceptionWhileWritingHeaders() { peer.acceptFrame() // SYN_STREAM. diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt index aa9119bd78b3..6c540ef03b9b 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt @@ -116,8 +116,8 @@ class HttpOverHttp2Test( @RegisterExtension val testLogHandler: TestLogHandler = TestLogHandler(Http2::class.java) - // Flaky https://github.com/square/okhttp/issues/4632 - // Flaky https://github.com/square/okhttp/issues/4633 + // Flaky https://github.com/lysine-dev/okhttp/issues/4632 + // Flaky https://github.com/lysine-dev/okhttp/issues/4633 private val handshakeCertificates: HandshakeCertificates = platform.localhostHandshakeCertificates() @@ -163,7 +163,7 @@ class HttpOverHttp2Test( } @AfterEach fun tearDown() { -// TODO reenable after https://github.com/square/okhttp/issues/8206 +// TODO reenable after https://github.com/lysine-dev/okhttp/issues/8206 // fileSystem.checkNoOpenFiles() cache.close() @@ -451,7 +451,7 @@ class HttpOverHttp2Test( assertThat(response2.body.string()).isEqualTo("abc") } - /** https://github.com/square/okhttp/issues/373 */ + /** https://github.com/lysine-dev/okhttp/issues/373 */ @Test @Disabled fun synchronousRequest() { @@ -983,7 +983,7 @@ class HttpOverHttp2Test( /** * We had a bug where we'd perform infinite retries of route that fail with connection shutdown * errors. The problem was that the logic that decided whether to reuse a route didn't track - * certain HTTP/2 errors. https://github.com/square/okhttp/issues/5547 + * certain HTTP/2 errors. https://github.com/lysine-dev/okhttp/issues/5547 */ @Test fun noRecoveryFromTwoRefusedStreams() { @@ -1491,7 +1491,7 @@ class HttpOverHttp2Test( @Test fun missingPongsFailsConnection() { if (protocol === Protocol.HTTP_2) { - // https://github.com/square/okhttp/issues/5221 + // https://github.com/lysine-dev/okhttp/issues/5221 platform.expectFailureOnJdkVersion(12) } @@ -1848,7 +1848,7 @@ class HttpOverHttp2Test( assertThat(bodies.remove()).isEqualTo("ABC") assertThat(server.requestCount).isEqualTo(2) } else { - // https://github.com/square/okhttp/issues/4836 + // https://github.com/lysine-dev/okhttp/issues/4836 // As documented in SocketEffect, this is known to be flaky. val error = errors[0] if (error !is StreamResetException) { @@ -1942,7 +1942,7 @@ class HttpOverHttp2Test( assertThat(client.connectionPool.connectionCount()).isEqualTo(1) } - /** https://github.com/square/okhttp/issues/3103 */ + /** https://github.com/lysine-dev/okhttp/issues/3103 */ @Test fun domainFronting() { client = @@ -1997,7 +1997,7 @@ class HttpOverHttp2Test( } } - /** https://github.com/square/okhttp/issues/4875 */ + /** https://github.com/lysine-dev/okhttp/issues/4875 */ @Test fun shutdownAfterLateCoalescing() { val latch = CountDownLatch(2) diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt index 99da0f748797..db6b27547341 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt @@ -67,7 +67,7 @@ class CertificatePinnerChainValidationTest { */ @Test fun pinRootNotPresentInChain() { - // Fails on 11.0.1 https://github.com/square/okhttp/issues/4703 + // Fails on 11.0.1 https://github.com/lysine-dev/okhttp/issues/4703 val rootCa = HeldCertificate .Builder() @@ -139,7 +139,7 @@ class CertificatePinnerChainValidationTest { */ @Test fun pinIntermediatePresentInChain() { - // Fails on 11.0.1 https://github.com/square/okhttp/issues/4703 + // Fails on 11.0.1 https://github.com/lysine-dev/okhttp/issues/4703 val rootCa = HeldCertificate .Builder() @@ -232,7 +232,7 @@ class CertificatePinnerChainValidationTest { @Test fun unrelatedPinnedLeafCertificateInChain() { - // https://github.com/square/okhttp/issues/4729 + // https://github.com/lysine-dev/okhttp/issues/4729 platform.expectFailureOnConscryptPlatform() platform.expectFailureOnCorrettoPlatform() platform.expectFailureOnLoomPlatform() @@ -336,7 +336,7 @@ class CertificatePinnerChainValidationTest { @Test fun unrelatedPinnedIntermediateCertificateInChain() { - // https://github.com/square/okhttp/issues/4729 + // https://github.com/lysine-dev/okhttp/issues/4729 platform.expectFailureOnConscryptPlatform() platform.expectFailureOnCorrettoPlatform() platform.expectFailureOnLoomPlatform() diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt index 2d96d4839946..674c31f52560 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt @@ -226,7 +226,7 @@ class ClientAuthTest { @Flaky @RetryingTest(5) fun missingClientAuthFailsForNeeds() { - // Fails with 11.0.1 https://github.com/square/okhttp/issues/4598 + // Fails with 11.0.1 https://github.com/lysine-dev/okhttp/issues/4598 // StreamReset stream was reset: PROT... val client = buildClient(null, clientIntermediateCa.certificate) val socketFactory = buildServerSslSocketFactory() @@ -278,7 +278,7 @@ class ClientAuthTest { @Test fun invalidClientAuthFails() { - // Fails with https://github.com/square/okhttp/issues/4598 + // Fails with https://github.com/lysine-dev/okhttp/issues/4598 // StreamReset stream was reset: PROT... val clientCert2 = HeldCertificate diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt index 3c9cf2cdd974..618c7de91b08 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt @@ -39,7 +39,7 @@ internal class MessageDeflaterInflaterTest { /** * We had a bug where self-finishing inflater streams would infinite loop! - * https://github.com/square/okhttp/issues/8078 + * https://github.com/lysine-dev/okhttp/issues/8078 */ @Test fun `inflate returns finished before bytesRead reaches input length`() { val inflater = MessageInflater(false) @@ -130,7 +130,7 @@ internal class MessageDeflaterInflaterTest { /** * Test for an [EOFException] caused by mishandling of fragmented buffers in web socket - * compression. https://github.com/square/okhttp/issues/5965 + * compression. https://github.com/lysine-dev/okhttp/issues/5965 */ @Test fun `inflate golden value in buffer that has been fragmented`() { val inflater = MessageInflater(false) @@ -147,7 +147,7 @@ internal class MessageDeflaterInflaterTest { * In practice this could happen if the encoder doesn't strip the [0x00, 0x00, 0xff, 0xff] suffix * and that ends up repeated. * - * https://github.com/square/okhttp/issues/8551 + * https://github.com/lysine-dev/okhttp/issues/8551 */ @Test fun `deflated data has too many bytes`() { diff --git a/okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt b/okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt index e5ac031e3e9b..9e2d86659ad7 100644 --- a/okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt +++ b/okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt @@ -78,8 +78,8 @@ import org.junit.jupiter.api.extension.RegisterExtension @Flaky @Tag("Slow") class WebSocketHttpTest { - // Flaky https://github.com/square/okhttp/issues/4515 - // Flaky https://github.com/square/okhttp/issues/4953 + // Flaky https://github.com/lysine-dev/okhttp/issues/4515 + // Flaky https://github.com/lysine-dev/okhttp/issues/4953 @RegisterExtension var clientTestRule = configureClientTestRule() @@ -907,7 +907,7 @@ class WebSocketHttpTest { .isCloseTo(1000.0, 250.0) } - /** https://github.com/square/okhttp/issues/2788 */ + /** https://github.com/lysine-dev/okhttp/issues/2788 */ @Test fun clientCancelsIfCloseIsNotAcknowledged() { webServer.enqueue( @@ -1010,7 +1010,7 @@ class WebSocketHttpTest { /** * We had a bug where web socket connections were leaked if the HTTP connection upgrade was not * successful. This test confirms that connections are released back to the connection pool! - * https://github.com/square/okhttp/issues/4258 + * https://github.com/lysine-dev/okhttp/issues/4258 */ @Test @Throws(Exception::class) @@ -1042,7 +1042,7 @@ class WebSocketHttpTest { assertThat(webServer.takeRequest().exchangeIndex).isEqualTo(1) } - /** https://github.com/square/okhttp/issues/5705 */ + /** https://github.com/lysine-dev/okhttp/issues/5705 */ @Test fun closeWithoutSuccessfulConnect() { val request = @@ -1055,7 +1055,7 @@ class WebSocketHttpTest { webSocket.close(1000, null) } - /** https://github.com/square/okhttp/issues/7768 */ + /** https://github.com/lysine-dev/okhttp/issues/7768 */ @Test @Throws(InterruptedException::class) fun reconnectingToNonWebSocket() { diff --git a/samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt b/samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt index c3d9c747298e..54c131345fad 100644 --- a/samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt +++ b/samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt @@ -30,7 +30,7 @@ import org.junit.jupiter.api.extension.RegisterExtension /** * OkHttp. * - * https://square.github.io/okhttp/ + * https://lysine.dev/okhttp/ */ class OkHttpClientTest { @JvmField @RegisterExtension diff --git a/samples/guide/src/main/java/okhttp3/guide/GetExample.java b/samples/guide/src/main/java/okhttp3/guide/GetExample.java index feb5bbe1397f..54532f64564a 100644 --- a/samples/guide/src/main/java/okhttp3/guide/GetExample.java +++ b/samples/guide/src/main/java/okhttp3/guide/GetExample.java @@ -35,7 +35,7 @@ String run(String url) throws IOException { public static void main(String[] args) throws IOException { GetExample example = new GetExample(); - String response = example.run("https://raw.github.com/square/okhttp/master/README.md"); + String response = example.run("https://raw.github.com/lysine-dev/okhttp/master/README.md"); System.out.println(response); } } diff --git a/samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java b/samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java index 95fa49241cbb..28c9ea2696fc 100644 --- a/samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java +++ b/samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java @@ -25,7 +25,7 @@ public final class AccessHeaders { public void run() throws Exception { Request request = new Request.Builder() - .url("https://api.github.com/repos/square/okhttp/issues") + .url("https://api.github.com/repos/lysine-dev/okhttp/issues") .header("User-Agent", "OkHttp Headers.java") .addHeader("Accept", "application/json; q=0.5") .addHeader("Accept", "application/vnd.github.v3+json") diff --git a/samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt b/samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt index 6af248aa6283..cf96187a147b 100644 --- a/samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt +++ b/samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt @@ -26,7 +26,7 @@ class AccessHeaders { val request = Request .Builder() - .url("https://api.github.com/repos/square/okhttp/issues") + .url("https://api.github.com/repos/lysine-dev/okhttp/issues") .header("User-Agent", "OkHttp Headers.java") .addHeader("Accept", "application/json; q=0.5") .addHeader("Accept", "application/vnd.github.v3+json") diff --git a/samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java b/samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java index 15a50dbed64f..c6e1b410bc5b 100644 --- a/samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java +++ b/samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java @@ -26,7 +26,7 @@ import okhttp3.ResponseBody; public class OkHttpContributors { - private static final String ENDPOINT = "https://api.github.com/repos/square/okhttp/contributors"; + private static final String ENDPOINT = "https://api.github.com/repos/lysine-dev/okhttp/contributors"; private static final Moshi MOSHI = new Moshi.Builder().build(); private static final JsonAdapter> CONTRIBUTORS_JSON_ADAPTER = MOSHI.adapter( Types.newParameterizedType(List.class, Contributor.class));