26
Jan
2012
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 + "!")); }