UncategorizedTagged

NuGet Project Uncovered: Anna

If you are coming to this series of posts for the first time you might check out my introductory post for a little context.

Anna is an event-driven HTTP server library leveraging the ReactiveExtensions (RX).

The below sample copied / shortened from the GitHub site.

using (var server = new HttpServer("http://*:1234/"))
{
    // simple basic usage, all subscriptions will run in a single event-loop
    server.GET("/hello/{Name}")
          .Subscribe(ctx => ctx.Respond("Hello, " + ctx.Request.UriArguments.Name + "!"));
}
Proudly powered by WordPress | Theme: Code Blog by Crimson Themes.