From 5f4230f10387e96faa8a06d19984571d0c55f5a0 Mon Sep 17 00:00:00 2001 From: AugustinSeguin Date: Wed, 17 Dec 2025 15:55:42 +0100 Subject: [PATCH 1/2] [bug] [2284] Doc & API mismatch request.AddCookie --- docs/docs/usage/request.md | 2 +- docs/versioned_docs/version-v111/usage/request.md | 2 +- docs/versioned_docs/version-v112/usage/request.md | 2 +- docs/versioned_docs/version-v113/usage/request.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/usage/request.md b/docs/docs/usage/request.md index 374ee14dd..c4f350747 100644 --- a/docs/docs/usage/request.md +++ b/docs/docs/usage/request.md @@ -224,7 +224,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. diff --git a/docs/versioned_docs/version-v111/usage/request.md b/docs/versioned_docs/version-v111/usage/request.md index a844ed8a4..9168c8218 100644 --- a/docs/versioned_docs/version-v111/usage/request.md +++ b/docs/versioned_docs/version-v111/usage/request.md @@ -205,7 +205,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. diff --git a/docs/versioned_docs/version-v112/usage/request.md b/docs/versioned_docs/version-v112/usage/request.md index 374ee14dd..c4f350747 100644 --- a/docs/versioned_docs/version-v112/usage/request.md +++ b/docs/versioned_docs/version-v112/usage/request.md @@ -224,7 +224,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. diff --git a/docs/versioned_docs/version-v113/usage/request.md b/docs/versioned_docs/version-v113/usage/request.md index 61de32de5..e71780924 100644 --- a/docs/versioned_docs/version-v113/usage/request.md +++ b/docs/versioned_docs/version-v113/usage/request.md @@ -1,4 +1,4 @@ ---- +f--- sidebar_position: 4 title: Preparing requests --- @@ -224,7 +224,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. From 578975080b67e509192a7d790a1f524e95fd209b Mon Sep 17 00:00:00 2001 From: AugustinSeguin Date: Wed, 17 Dec 2025 16:08:33 +0100 Subject: [PATCH 2/2] fix typo .md mistake + add doc on v113 request.md AddCookie method --- docs/versioned_docs/version-v110/usage/usage.md | 2 +- docs/versioned_docs/version-v113/usage/request.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/versioned_docs/version-v110/usage/usage.md b/docs/versioned_docs/version-v110/usage/usage.md index 7c580f096..a47164d49 100644 --- a/docs/versioned_docs/version-v110/usage/usage.md +++ b/docs/versioned_docs/version-v110/usage/usage.md @@ -227,7 +227,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. diff --git a/docs/versioned_docs/version-v113/usage/request.md b/docs/versioned_docs/version-v113/usage/request.md index e71780924..19feaed6a 100644 --- a/docs/versioned_docs/version-v113/usage/request.md +++ b/docs/versioned_docs/version-v113/usage/request.md @@ -1,4 +1,4 @@ -f--- +--- sidebar_position: 4 title: Preparing requests ---