Skip to content

About

A tiny C# HTTP server

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

TinyHttp - a tiny C# HTTP server

Copyright (C) 2012 Matt Jamieson

public class Program : RequestProcessor
{
    public Program()
    {
        Get["/"] = s => new HtmlResponse("<h1>Welcome</h1>");
        Get["/hello/{name}"] = s => new HtmlResponse(String.Format("<h1>Hello, {0}</h1>", s.name));
    }

    public static void Main()
    {
        var host = new TinyHttpHost("http://localhost:9999/", new Program());
        host.Start();

        while (true) ;
    }
}

About

A tiny C# HTTP server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages