Skip to content

Commit

Permalink
Merge branch 'restsharp:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fseidl-bauradar committed Jun 19, 2023
2 parents b31aee4 + 1231a68 commit 7cec99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var request = new RestRequest("statuses/home_timeline.json");
var timeline = await client.GetAsync<HomeTimeline>(request, cancellationToken);
```

Both snippets about use the `GetAsync` extension, which is a wrapper about `ExecuteGetAsync`, which, in turn, is a wrapper around `ExecuteAsync`.
Both snippets above use the `GetAsync` extension, which is a wrapper about `ExecuteGetAsync`, which, in turn, is a wrapper around `ExecuteAsync`.
All `ExecuteAsync` overloads and return the `RestResponse` or `RestResponse<T>`.

The most important difference is that async methods that are named after HTTP methods return the `Task<T>` instead of `Task<RestResponse<T>>`. Because it means that you won't get an error response if the request fails, those methods
Expand Down

0 comments on commit 7cec99f

Please sign in to comment.