Skip to content

Commit edce8c9

Browse files
committed
More cleanup
1 parent 4af066c commit edce8c9

File tree

3 files changed

+53
-53
lines changed

3 files changed

+53
-53
lines changed

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Read [here](usage.md#json-requests) about making JSON calls without preparing a
7878

7979
### Content type
8080

81-
RestSharp supports sending XML or JSON body as part of the request. To add a body to the request, simply call `AddJsonBody` or `AddXmlBody` method of the `IRestRequest` instance.
81+
RestSharp supports sending XML or JSON body as part of the request. To add a body to the request, simply call `AddJsonBody` or `AddXmlBody` method of the `RestRequest` instance.
8282

8383
There is no need to set the `Content-Type` or add the `DataFormat` parameter to the request when using those methods, RestSharp will do it for you.
8484

docs/v107/README.md

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -222,57 +222,57 @@ Console.Write(response.Content); // {'name' : 'Test McGee'}
222222

223223
Below, you can find members of `IRestClient` and `IRestRequest` with their corresponding status and location in the new API.
224224

225-
| `IRestClient` member | Where is it now? |
226-
|:------------------------------------------------------------------------------------------------|:-----------------------------------|
227-
| `CookieContainer` | `RestClientOptions` |
228-
| `AutomaticDecompression` | `RestClientOptions`, changed type |
229-
| `MaxRedirects` | `RestClientOptions` |
230-
| `UserAgent` | `RestClientOptions` |
231-
| `Timeout` | `RestClientOptions`, `RestRequest` |
232-
| `Authenticator` | `RestClientOptions` |
233-
| `BaseUrl` | `RestClientOptions` |
234-
| `Encoding` | `RestClientOptions` |
235-
| `ThrowOnDeserializationError` | `RestClientOptions` |
236-
| `FailOnDeserializationError` | `RestClientOptions` |
237-
| `ThrowOnAnyError` | `RestClientOptions` |
238-
| `PreAuthenticate` | `RestClientOptions` |
239-
| `BaseHost` | `RestClientOptions` |
240-
| `AllowMultipleDefaultParametersWithSameName` | `RestClientOptions` |
241-
| `ClientCertificates` | `RestClientOptions` |
242-
| `Proxy` | `RestClientOptions` |
243-
| `CachePolicy` | `RestClientOptions`, changed type |
244-
| `FollowRedirects` | `RestClientOptions` |
245-
| `RemoteCertificateValidationCallback` | `RestClientOptions` |
246-
| `Pipelined` | Not supported |
247-
| `UnsafeAuthenticatedConnectionSharing` | Not supported |
248-
| `ConnectionGroupName` | Not supported |
249-
| `ReadWriteTimeout` | Not supported |
250-
| `UseSynchronizationContext` | Not supported |
251-
| `DefaultParameters` | `RestClient` |
252-
| `Deserialize<T>(IRestResponse response)` | `RestSerializers` |
253-
| `BuildUri(IRestRequest request)` | Extension |
254-
| `ExecuteAsync<T>(IRestRequest request, CancellationToken cancellationToken)` | `RestClient` |
255-
| `ExecuteAsync<T>(IRestRequest request, Method httpMethod, CancellationToken cancellationToken)` | Extension |
256-
| `ExecuteAsync(IRestRequest request, Method httpMethod, CancellationToken cancellationToken)` | Extension |
257-
| `ExecuteAsync(IRestRequest request, CancellationToken cancellationToken)` | Extension |
258-
| `ExecuteGetAsync<T>(IRestRequest request, CancellationToken cancellationToken)` | Extension |
259-
| `ExecutePostAsync<T>(IRestRequest request, CancellationToken cancellationToken)` | Extension |
260-
| `ExecuteGetAsync(IRestRequest request, CancellationToken cancellationToken)` | Extension |
261-
| `ExecutePostAsync(IRestRequest request, CancellationToken cancellationToken)` | Extension |
262-
| `Execute(IRestRequest request)` | Deprecated |
263-
| `Execute(IRestRequest request, Method httpMethod)` | Deprecated |
264-
| `Execute<T>(IRestRequest request)` | Deprecated |
265-
| `Execute<T>(IRestRequest request, Method httpMethod)` | Deprecated |
266-
| `DownloadData(IRestRequest request)` | Deprecated |
267-
| `ExecuteAsGet(IRestRequest request, string httpMethod)` | Deprecated |
268-
| `ExecuteAsPost(IRestRequest request, string httpMethod)` | Deprecated |
269-
| `ExecuteAsGet<T>(IRestRequest request, string httpMethod)` | Deprecated |
270-
| `ExecuteAsPost<T>(IRestRequest request, string httpMethod)` | Deprecated |
271-
| `BuildUriWithoutQueryParameters(IRestRequest request)` | Extension |
272-
| `ConfigureWebRequest(Action<HttpWebRequest> configurator)` | Removed |
273-
| `AddHandler(string contentType, Func<IDeserializer> deserializerFactory)` | Removed |
274-
| `RemoveHandler(string contentType)` | Removed |
275-
| `ClearHandlers()` | Removed |
225+
| `IRestClient` member | Where is it now? |
226+
|:------------------------------------------------------------------------------------------------|:----------------------------------------|
227+
| `CookieContainer` | `RestClientOptions`, `RestRequest` |
228+
| `AutomaticDecompression` | `RestClientOptions`, changed type |
229+
| `MaxRedirects` | `RestClientOptions` |
230+
| `UserAgent` | `RestClientOptions` |
231+
| `Timeout` | `RestClientOptions`, `RestRequest` |
232+
| `Authenticator` | `RestClientOptions`, `RestRequest` |
233+
| `BaseUrl` | `RestClientOptions` |
234+
| `Encoding` | `RestClientOptions` |
235+
| `ThrowOnDeserializationError` | `RestClientOptions` |
236+
| `FailOnDeserializationError` | `RestClientOptions` |
237+
| `ThrowOnAnyError` | `RestClientOptions` |
238+
| `PreAuthenticate` | `RestClientOptions` |
239+
| `BaseHost` | `RestClientOptions` |
240+
| `AllowMultipleDefaultParametersWithSameName` | `RestClientOptions` |
241+
| `ClientCertificates` | `RestClientOptions` |
242+
| `Proxy` | `RestClientOptions` |
243+
| `CachePolicy` | `RestClientOptions`, changed type |
244+
| `FollowRedirects` | `RestClientOptions` |
245+
| `RemoteCertificateValidationCallback` | `RestClientOptions` |
246+
| `Pipelined` | Not supported |
247+
| `UnsafeAuthenticatedConnectionSharing` | Not supported |
248+
| `ConnectionGroupName` | Not supported |
249+
| `ReadWriteTimeout` | Not supported |
250+
| `UseSynchronizationContext` | Not supported |
251+
| `DefaultParameters` | `RestClient` |
252+
| `Deserialize<T>(IRestResponse response)` | `RestSerializers` |
253+
| `BuildUri(IRestRequest request)` | Extension |
254+
| `ExecuteAsync<T>(IRestRequest request, CancellationToken cancellationToken)` | `RestClient` |
255+
| `ExecuteAsync<T>(IRestRequest request, Method httpMethod, CancellationToken cancellationToken)` | Extension |
256+
| `ExecuteAsync(IRestRequest request, Method httpMethod, CancellationToken cancellationToken)` | Extension |
257+
| `ExecuteAsync(IRestRequest request, CancellationToken cancellationToken)` | Extension |
258+
| `ExecuteGetAsync<T>(IRestRequest request, CancellationToken cancellationToken)` | Extension |
259+
| `ExecutePostAsync<T>(IRestRequest request, CancellationToken cancellationToken)` | Extension |
260+
| `ExecuteGetAsync(IRestRequest request, CancellationToken cancellationToken)` | Extension |
261+
| `ExecutePostAsync(IRestRequest request, CancellationToken cancellationToken)` | Extension |
262+
| `Execute(IRestRequest request)` | Extension (since v108) |
263+
| `Execute(IRestRequest request, Method httpMethod)` | Extension (since v108) |
264+
| `Execute<T>(IRestRequest request)` | Extension (since v108) |
265+
| `Execute<T>(IRestRequest request, Method httpMethod)` | Extension (since v108) |
266+
| `DownloadData(IRestRequest request)` | Extension (since v108) |
267+
| `ExecuteAsGet(IRestRequest request, string httpMethod)` | Extension `ExecuteGetA` (since v108) |
268+
| `ExecuteAsPost(IRestRequest request, string httpMethod)` | Extension `ExecutePost` (since v108) |
269+
| `ExecuteAsGet<T>(IRestRequest request, string httpMethod)` | Extension `ExecuteGet<T>` (since v108) |
270+
| `ExecuteAsPost<T>(IRestRequest request, string httpMethod)` | Extension `ExecutePost<T>` (since v108) |
271+
| `BuildUriWithoutQueryParameters(IRestRequest request)` | Extension |
272+
| `ConfigureWebRequest(Action<HttpWebRequest> configurator)` | Removed |
273+
| `AddHandler(string contentType, Func<IDeserializer> deserializerFactory)` | Removed |
274+
| `RemoveHandler(string contentType)` | Removed |
275+
| `ClearHandlers()` | Removed |
276276

277277
| `IRestRequest` member | Where is it now? |
278278
|:-------------------------------------------------------------------------------------------------------|:---------------------------------|

test/RestSharp.Tests/RestClientTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class RestClientTests {
1515
[InlineData(Method.Patch, Method.Put)]
1616
[InlineData(Method.Post, Method.Put)]
1717
[InlineData(Method.Get, Method.Delete)]
18-
public async Task Execute_with_IRestRequest_and_Method_overrides_previous_request_method(Method reqMethod, Method overrideMethod) {
18+
public async Task Execute_with_RestRequest_and_Method_overrides_previous_request_method(Method reqMethod, Method overrideMethod) {
1919
var req = new RestRequest("", reqMethod);
2020
var client = new RestClient(BaseUrl);
2121

0 commit comments

Comments
 (0)