The simplest and quickest way to build and send REST requests.
QuickRest helps developers to compose REST requests very easily.
As an example, here is the most basic REST request achievable with QuickRest:
using QuickRest;
Request request = new Request("http://www.ExampleWebsite.com");
request.Send();and that's it! Your request has been sent successfully! Yes!
OK... but how do I get a response to my request?
With QuickRest, that's easy too.
Request.Send() is an asynchronous method, and will not block the code flow.
To get a response, subscribe to the OnResponse event of a request instance before sending it, and wait for the response to arrive.
It is that simple!
using QuickRest
Request r = new Request("http://www.ExampleWebsite.com");
'in order to get an answer for your request
r.OnResponse += OnResponseCallback;
r.Send();
public void OnResponseCallback(Request _request,Response _response)
{
// some_code_here...
}- By default, QuickRest uses the GET method for requests.
- QuickRest targets .NET Framework 2.0.
-
Version 1.0
QuickRest First Version