Skip to content

Commit

Permalink
Update parameters.md (#1571)
Browse files Browse the repository at this point in the history
Line 101 should be request.AddParameter("foo", "bar", ParameterType.QueryString);


Not RequestType.QueryString that it was before. 

It's just a typo, the AddParameter method in RestRequest does not have a "RequestType" param.

Thank you.
  • Loading branch information
propenster committed May 5, 2021
1 parent 3dcf541 commit e662372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage/parameters.md
Expand Up @@ -98,7 +98,7 @@ It will send a `GET` request to `https://search.me/search?foo=bar")`.
You can also specify the query string parameter type explicitly:

```csharp
request.AddParameter("foo", "bar", RequestType.QueryString);
request.AddParameter("foo", "bar", ParameterType.QueryString);
```

In some cases you might need to prevent RestSharp from encoding the query string parameter. To do so, use the `QueryStringWithoutEncode` parameter type.

0 comments on commit e662372

Please sign in to comment.