class

HttpServer

ruby latest stable - Superclass: GServer

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

Implements a simple HTTP-server by using John W. Small’s ([email protected]) ruby-generic-server: GServer.

Constants

CRLF = "\\r\\n"

DEFAULT_HEADER = {\n"Server" => SERVER_NAME\n}

HTTP_PROTO = "HTTP/1.0"

SERVER_NAME = "HttpServer (Ruby #{RUBY_VERSION})"

StatusCodeMapping = {\n200 => "OK",\n400 => "Bad Request",\n403 => "Forbidden",\n405 => "Method Not Allowed",\n411 => "Length Required",\n500 => "Internal Server Error"\n}

Files

  • lib/xmlrpc/httpserver.rb