<commit_before>Kayak is a lightweight C# web server. Natively support the [OWIN](http://owin.github.com) specification.

Kayak is Copyright (c) 2010 <NAME>. Kayak is licensed under the 
MIT License. See LICENSE.txt.

[http://kayakhttp.com](http://kayakhttp.com)<br>
[http://bvanderveen.com](http://bvanderveen.com)


# Example

To run an OWIN app:


    public delegate void
        OwinApplication(IDictionary<string, object> env,
        Action<string, IDictionary<string, IList<string>>, IEnumerable<object>> completed,
        Action<Exception> faulted); 

    class Simple
    {
        public static void Run()
        {
            var server = new DotNetServer();

            var pipe = server.Start();

            server.Host((env, respond, error) =>
                {
                    respond(
                            "200 OK",
                            new Dictionary<string, IList<string>>() 
                            {
                                { "Content-Type",  new string[] { "text/html" } }
                            },
                            new object[] { Encoding.ASCII.GetBytes("Hello world.") }
                        );
                });

            Console.WriteLine("Listening on " + server.ListenEndPoint);
            Console.WriteLine("Press enter to exit.");
            Console.ReadLine();

            pipe.Dispose();
        }
    }<commit_msg>added deps to readme<commit_after>Kayak is a lightweight C# web server. Natively support the [OWIN](http://owin.github.com) specification.

Kayak is Copyright (c) 2010 <NAME>. Kayak is licensed under the 
MIT License. See LICENSE.txt.

[http://kayakhttp.com](http://kayakhttp.com)<br>
[http://bvanderveen.com](http://bvanderveen.com)

# Dependencies

Kayak depends on [Coroutine](http://github.com/bvanderveen/coroutine).

# Example

To run an OWIN app:


    public delegate void
        OwinApplication(IDictionary<string, object> env,
        Action<string, IDictionary<string, IList<string>>, IEnumerable<object>> completed,
        Action<Exception> faulted); 

    class Simple
    {
        public static void Run()
        {
            var server = new DotNetServer();

            var pipe = server.Start();

            server.Host((env, respond, error) =>
                {
                    respond(
                            "200 OK",
                            new Dictionary<string, IList<string>>() 
                            {
                                { "Content-Type",  new string[] { "text/html" } }
                            },
                            new object[] { Encoding.ASCII.GetBytes("Hello world.") }
                        );
                });

            Console.WriteLine("Listening on " + server.ListenEndPoint);
            Console.WriteLine("Press enter to exit.");
            Console.ReadLine();

            pipe.Dispose();
        }
    }

{'fraction_non_alphanumeric': 0.11550360948779649, 'fraction_numerical': 0.0048126503953248535, 'mean_word_length': 1.5843694493783305, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4240811', 'n_tokens_mistral': 806, 'n_tokens_neox': 742, 'n_words': 182}