Type:
Class
Constants:
CRLF : "\r\n"
HTTP_PROTO : "HTTP/1.0"
SERVER_NAME : "HttpServer (Ruby #{RUBY_VERSION})"
DEFAULT_HEADER : { "Server" => SERVER_NAME }

Default header for the server name

StatusCodeMapping : { 200 => "OK", 400 => "Bad Request", 403 => "Forbidden", 405 => "Method Not Allowed", 411 => "Length Required", 500 => "Internal Server Error" }

Mapping of status codes and error messages

Implements a simple HTTP-server by using John W. Small's (jsmall@laser.net) ruby-generic-server: GServer.

serve

serve(io) Instance Private methods Handles the HTTP request and writes the response

2015-04-12 04:59:57
http_date

http_date( aTime ) Instance Private methods Returns a string which represents

2015-04-12 04:48:26
http_header

http_header(header=nil) Instance Private methods Generates a

2015-04-12 04:55:44
new

new(handle_obj, port = 8080, host = DEFAULT_HOST, maxConnections = 4, stdlog = $stdout, audit = true, debug = true)

2015-04-12 04:42:19
http_resp

http_resp(status_code, status_message=nil, header=nil, body=nil) Instance Private methods

2015-04-12 04:57:32