Skip to content

Commit 9ed66e6

Browse files
committed
Closes #1842
1 parent ebb1df1 commit 9ed66e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/v107/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ var request = new RestRequest()
9797
var response = await client.PostAsync<MyResponse>(request, cancellationToken);
9898
```
9999

100-
All the synchronous methods are gone. If you absolutely must call without using `async` and `await`, use `GetAwaiter().GetResult()` blocking call.
101-
102100
The `IRestResponse` interface is deprecated. You get an instance of `RestResponse` or `RestResponse<T>` in return.
103101

104102
You can also use a simplified API for making POST and PUT requests:
@@ -166,7 +164,7 @@ public class GitHubClient {
166164
}
167165

168166
public Task<GitHubRepo[]> GetRepos()
169-
=> _client.GetAsync<GitHubRepo[]>("users/aspnet/repos");
167+
=> _client.GetJsonAsync<GitHubRepo[]>("users/aspnet/repos");
170168
}
171169
```
172170

0 commit comments

Comments
 (0)