Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 839 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 839 Bytes

Expresso

Inspiration for the Expresso library came from the Express routing code. It greatly simplifies creating a RESTful web-service in C#. A simple example of using Expresso that maps the /users endpoint of a url to a callback is

var router = new Router();
router.Route(HttpMethods.Get, "/users", (req, res) => 
{

});

The HttpRouter also provides a way to get parameters from an endpoint. An example that maps the /users/georgebearden endpoint of a url to callback is

var router = new Router();
router.Route(HttpMethods.Get, "/users/{userId}", (req, res) => 
{
  var userId = req.Params["userId"];
});

Platforms supported

  • Windows Desktop .NET 4.5
  • Xamarin support coming soon...

Next steps

Adding support for middleware.

New Section