Skip to content

xenoken/QuickRest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickRest Codacy BadgeBuild status

The simplest and quickest way to build and send REST requests.

Getting Started

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...
}

Notes

  • By default, QuickRest uses the GET method for requests.
  • QuickRest targets .NET Framework 2.0.

ChangeLog

  • Version 1.0

    QuickRest First Version
    

About

Simplest and Quickest REST Library

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors