<commit_before># net-http-server

* [Homepage](http://github.com/postmodern/net-http-server)
* [Issues](http://github.com/postmodern/net-http-server/issues)
* [Documentation](http://rubydoc.info/gems/net-http-server)
* [Email](mailto:postmodern.mod3 at gmail.com)

## Description

{Net::HTTP::Server} is a pure Ruby HTTP server.

## Features

* Pure Ruby.
* Supports Streamed Request/Response Bodies.
* Supports Chunked Transfer-Encoding.
* Provides a [Rack](http://rack.rubyforge.org/) Handler.

## Examples

Simple HTTP Server:

    require 'net/http/server'
    require 'pp'

    Net::HTTP::Server.run(:port => 8080) do |request,stream|
      pp request

      [200, {'Content-Type' => 'text/html'}, ['Hello World']]
    end

Use it with Rack:

    require 'rack/handler/http'
    
    Rack::Handler::HTTP.run app

## Requirements

* [parslet](http://rubygems.org/gems/parslet) ~> 1.0

## Install

    $ gem install net-http-server

## Copyright

Copyright (c) 2011 <NAME>

See {file:LICENSE.txt} for details.
<commit_msg>Provide example of using net-http-server with rackup.<commit_after># net-http-server

* [Homepage](http://github.com/postmodern/net-http-server)
* [Issues](http://github.com/postmodern/net-http-server/issues)
* [Documentation](http://rubydoc.info/gems/net-http-server)
* [Email](mailto:postmodern.mod3 at gmail.com)

## Description

{Net::HTTP::Server} is a pure Ruby HTTP server.

## Features

* Pure Ruby.
* Supports Streamed Request/Response Bodies.
* Supports Chunked Transfer-Encoding.
* Provides a [Rack](http://rack.rubyforge.org/) Handler.

## Examples

Simple HTTP Server:

    require 'net/http/server'
    require 'pp'

    Net::HTTP::Server.run(:port => 8080) do |request,stream|
      pp request

      [200, {'Content-Type' => 'text/html'}, ['Hello World']]
    end

Use it with Rack:

    require 'rack/handler/http'
    
    Rack::Handler::HTTP.run app

Using it with `rackup`:

    $ rackup -r net/http

## Requirements

* [parslet](http://rubygems.org/gems/parslet) ~> 1.0

## Install

    $ gem install net-http-server

## Copyright

Copyright (c) 2011 <NAME>

See {file:LICENSE.txt} for details.

{'fraction_non_alphanumeric': 0.16020551144325082, 'fraction_numerical': 0.013078000934142924, 'mean_word_length': 3.7389380530973453, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '550896', 'n_tokens_mistral': 791, 'n_tokens_neox': 731, 'n_words': 161}