Sha256: 04636094f242159ce2315835d8e21a750c808101ab48b5d8de4ae8b2beada6ba

Contents?: true

Size: 918 Bytes

Versions: 1

Compression:

Stored size: 918 Bytes

Contents

# 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)
* Postmodern (postmodern.mod3 at gmail.com)

## Description

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

## Features

* Pure Ruby.
* 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,socket|
      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 Hal Brodigan

See {file:LICENSE.txt} for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
net-http-server-0.1.0 README.md