About 50 results
Open links in new tab
  1. Hello from RestSharp | RestSharp

    Whether you want to add a query, a URL, or URL-encoded form parameters, RestSharp allows doing it with one line of code. The same applies to sending files and using multipart forms.

  2. Quick start | RestSharp

    The main purpose of RestSharp is to make synchronous and asynchronous calls to remote resources over HTTP. As the name suggests, the main audience of RestSharp are developers …

  3. Preparing requests | RestSharp

    RestSharp will use the correct content type by default. Avoid adding the Content-Type header manually to your requests unless you are absolutely sure it is required.

  4. Creating the client | RestSharp

    RestSharp can be configured with more tweaks, including default request options, how it should handle responses, how serialization works, etc. You can also provide your own instance of …

  5. Example | RestSharp

    RestSharp works best as the foundation for a proxy class for your API. Each API would most probably require different settings for RestClient. Hence, a dedicated API class (and its …

  6. Using RestSharp

    Using RestSharp Version: v113 Using RestSharp 📄️ Example RestSharp works best as the foundation for a proxy class for your API. Each API would most probably require different …

  7. RestSharp basics | RestSharp

    The best way to call an external HTTP API is to create a typed client, which encapsulates RestSharp calls and doesn't expose the RestClient instance in public. You can find an …

  8. Configuration | RestSharp

    Another way to customize the message handler is to allow RestSharp to create a handler, but then configure it, or wrap it in a delegating handler. It can be done by using the …

  9. Migration from v106 and earlier | RestSharp

    The most important change is that RestSharp stop using the legacy HttpWebRequest class, and uses well-known HttpClient instead. This move solves lots of issues, like hanging connections …

  10. Serialization | RestSharp

    One of the most common reasons to choose RestSharp over plain HttpClient is its rich build-in serialization support. RestSharp allows adding complex objects as request body to be …