mirror of
https://github.com/square/okhttp.git
synced 2025-08-08 23:42:08 +03:00
Advertise 4.12.0 in docs
This commit is contained in:
10
README.md
10
README.md
@@ -97,10 +97,10 @@ Releases
|
|||||||
|
|
||||||
Our [change log][changelog] has release history.
|
Our [change log][changelog] has release history.
|
||||||
|
|
||||||
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.11.0/jar).
|
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.12.0/jar).
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
implementation("com.squareup.okhttp3:okhttp:4.11.0")
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available.
|
Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available.
|
||||||
@@ -110,7 +110,7 @@ Also, we have a [bill of materials (BOM)][bom] available to help you keep OkHttp
|
|||||||
```kotlin
|
```kotlin
|
||||||
dependencies {
|
dependencies {
|
||||||
// define a BOM and its version
|
// define a BOM and its version
|
||||||
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.11.0"))
|
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
|
||||||
|
|
||||||
// define any required OkHttp artifacts without version
|
// define any required OkHttp artifacts without version
|
||||||
implementation("com.squareup.okhttp3:okhttp")
|
implementation("com.squareup.okhttp3:okhttp")
|
||||||
@@ -123,10 +123,10 @@ MockWebServer
|
|||||||
|
|
||||||
OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients.
|
OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients.
|
||||||
|
|
||||||
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.11.0/jar).
|
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.12.0/jar).
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
testImplementation("com.squareup.okhttp3:mockwebserver:4.11.0")
|
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
GraalVM Native Image
|
GraalVM Native Image
|
||||||
|
@@ -6,7 +6,7 @@ This module integrates mockwebserver3.MockWebServer with JUnit 4.
|
|||||||
To use, first add this library as a test dependency:
|
To use, first add this library as a test dependency:
|
||||||
|
|
||||||
```
|
```
|
||||||
testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:4.11.0")
|
testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
Then in tests annotated `@org.junit.Test`, you may declare a field with the `@Rule` annotation:
|
Then in tests annotated `@org.junit.Test`, you may declare a field with the `@Rule` annotation:
|
||||||
|
@@ -6,7 +6,7 @@ This module integrates mockwebserver3.MockWebServer with JUnit 5.
|
|||||||
To use, first add this library as a test dependency:
|
To use, first add this library as a test dependency:
|
||||||
|
|
||||||
```
|
```
|
||||||
testRuntimeOnly("com.squareup.okhttp3:mockwebserver3-junit5:4.11.0")
|
testRuntimeOnly("com.squareup.okhttp3:mockwebserver3-junit5:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
Then in tests annotated `@org.junit.jupiter.api.Test`, you may add a [MockWebServer] as a test
|
Then in tests annotated `@org.junit.jupiter.api.Test`, you may add a [MockWebServer] as a test
|
||||||
|
@@ -142,7 +142,7 @@ server.setDispatcher(dispatcher);
|
|||||||
### Download
|
### Download
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
testImplementation("com.squareup.okhttp3:mockwebserver:4.11.0")
|
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
@@ -9,5 +9,5 @@ Download
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
implementation("com.squareup.okhttp3:okhttp-android:4.11.0")
|
implementation("com.squareup.okhttp3:okhttp-android:4.12.0")
|
||||||
```
|
```
|
||||||
|
@@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder()
|
|||||||
```
|
```
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
implementation("com.squareup.okhttp3:okhttp-brotli:4.11.0")
|
implementation("com.squareup.okhttp3:okhttp-brotli:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
[1]: https://github.com/google/brotli
|
[1]: https://github.com/google/brotli
|
||||||
|
@@ -6,7 +6,7 @@ This module is an implementation of [DNS over HTTPS][1] using OkHttp.
|
|||||||
### Download
|
### Download
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.11.0")
|
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
@@ -7,5 +7,5 @@ This used to be part of `okhttp-urlconnection`
|
|||||||
### Download
|
### Download
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
testImplementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:4.11.0")
|
testImplementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:4.12.0")
|
||||||
```
|
```
|
||||||
|
@@ -37,7 +37,7 @@ Download
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
|
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
|
|||||||
### Download
|
### Download
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
testImplementation("com.squareup.okhttp3:okhttp-sse:4.11.0")
|
testImplementation("com.squareup.okhttp3:okhttp-sse:4.12.0")
|
||||||
```
|
```
|
||||||
|
@@ -225,7 +225,7 @@ Download
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
implementation("com.squareup.okhttp3:okhttp-tls:4.11.0")
|
implementation("com.squareup.okhttp3:okhttp-tls:4.12.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
[held_certificate]: https://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/
|
[held_certificate]: https://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/
|
||||||
|
@@ -8,5 +8,5 @@ This module is obsolete; prefer `okhttp-java-net-cookiejar`.
|
|||||||
### Download
|
### Download
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.11.0")
|
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.12.0")
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user