class
HttpServer
ruby latest stable
- Superclass: GServer
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