You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2024/10/11 16:27:34 UTC
(httpcomponents-website) branch master updated: doc: Minor corrections around cookie spec
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-website.git
The following commit(s) were added to refs/heads/master by this push:
new ad0d6cf doc: Minor corrections around cookie spec
ad0d6cf is described below
commit ad0d6cf7da991e881350c8989a30a8418bd063dd
Author: Jacques-Etienne Beaudet <je...@gmail.com>
AuthorDate: Fri Oct 11 11:53:34 2024 -0400
doc: Minor corrections around cookie spec
---
.../migration-guide/migration-to-classic.md | 2 +-
.../httpcomponents-client-5.4.x/migration-guide/preparation.md | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/site/markdown/httpcomponents-client-5.4.x/migration-guide/migration-to-classic.md b/src/site/markdown/httpcomponents-client-5.4.x/migration-guide/migration-to-classic.md
index 222f533..fcdc902 100644
--- a/src/site/markdown/httpcomponents-client-5.4.x/migration-guide/migration-to-classic.md
+++ b/src/site/markdown/httpcomponents-client-5.4.x/migration-guide/migration-to-classic.md
@@ -59,7 +59,7 @@ management configuration, SSL/TLS and timeout settings when building HttpClient
.build();
```
-- Favor `standard-strict` cookie policy when using HttpClient 5.0.
+- Favor the `strict` cookie policy when using HttpClient 5.0.
- Use response timeout to define the maximum period of inactivity until receipt of response data.
diff --git a/src/site/markdown/httpcomponents-client-5.4.x/migration-guide/preparation.md b/src/site/markdown/httpcomponents-client-5.4.x/migration-guide/preparation.md
index 42c223e..c6793bb 100644
--- a/src/site/markdown/httpcomponents-client-5.4.x/migration-guide/preparation.md
+++ b/src/site/markdown/httpcomponents-client-5.4.x/migration-guide/preparation.md
@@ -18,7 +18,7 @@ It is strongly encouraged to follow the best practices and common use patterns i
1. Set finite connection total time to live (TTL).
-1. Favor `standard` and `standard-strict` cookie policies.
+1. Favor the `strict` cookie policy.
1. IMPORTANT: Always re-use `CloseableHttpClient` instances. They are expensive to create, but they are also fully
thread safe, so multiple threads can use the same instance of `CloseableHttpClient` to execute multiple requests
@@ -38,7 +38,7 @@ It is strongly encouraged to follow the best practices and common use patterns i
.setDefaultRequestConfig(RequestConfig.custom()
.setConnectTimeout(60000)
.setSocketTimeout(60000)
- .setCookieSpec(CookieSpecs.STANDARD_STRICT)
+ .setCookieSpec(StandardCookieSpec.STRICT)
.build())
.build();
```
@@ -62,7 +62,7 @@ It is strongly encouraged to follow the best practices and common use patterns i
clientContext.setRequestConfig(RequestConfig.custom()
.setConnectTimeout(60000)
.setSocketTimeout(60000)
- .setCookieSpec(CookieSpecs.STANDARD)
+ .setCookieSpec(StandardCookieSpec.STRICT)
.build());
```