Type:
Module
Constants:
DefaultMimeTypes : { "ai" => "application/postscript", "asc" => "text/plain", "avi" => "video/x-msvideo", "bin" => "application/octet-stream", "bmp" => "image/bmp", "class" => "application/octet-stream", "cer" => "application/pkix-cert", "crl" => "application/pkix-crl", "crt" => "application/x-x509-ca-cert", #"crl" => "application/x-pkcs7-crl", "css" => "text/css", "dms" => "application/octet-stream", "doc" => "application/msword", "dvi" => "application/x-dvi", "eps" => "application/postscript", "etx" => "text/x-setext", "exe" => "application/octet-stream", "gif" => "image/gif", "htm" => "text/html", "html" => "text/html", "jpe" => "image/jpeg", "jpeg" => "image/jpeg", "jpg" => "image/jpeg", "js" => "application/javascript", "lha" => "application/octet-stream", "lzh" => "application/octet-stream", "mov" => "video/quicktime", "mpe" => "video/mpeg", "mpeg" => "video/mpeg", "mpg" => "video/mpeg", "pbm" => "image/x-portable-bitmap", "pdf" => "application/pdf", "pgm" => "image/x-portable-graymap", "png" => "image/png", "pnm" => "image/x-portable-anymap", "ppm" => "image/x-portable-pixmap", "ppt" => "application/vnd.ms-powerpoint", "ps" => "application/postscript", "qt" => "video/quicktime", "ras" => "image/x-cmu-raster", "rb" => "text/plain", "rd" => "text/plain", "rtf" => "application/rtf", "sgm" => "text/sgml", "sgml" => "text/sgml", "svg" => "image/svg+xml", "tif" => "image/tiff", "tiff" => "image/tiff", "txt" => "text/plain", "xbm" => "image/x-xbitmap", "xhtml" => "text/html", "xls" => "application/vnd.ms-excel", "xml" => "text/xml", "xpm" => "image/x-xpixmap", "xwd" => "image/x-xwindowdump", "zip" => "application/zip", }

Default mime types

HTTPUtils provides utility methods for working with the HTTP protocol.

This module is generally used internally by WEBrick

normalize_path

normalize_path(path) Class Public methods Normalizes a request path. Raises

2015-06-12 04:53:03
split_header_value

split_header_value(str) Class Public methods Splits a header value str

2015-06-12 05:15:26
escape_form

escape_form(str) Instance Public methods Escapes form reserved characters in

2015-06-12 05:30:41
parse_header

parse_header(raw) Class Public methods Parses an HTTP header raw

2015-06-12 04:59:58
parse_query

parse_query(str) Class Public methods Parses the query component of a

2015-06-12 05:04:01
dequote

dequote(str) Class Public methods Removes quotes and escapes from str

2015-06-12 04:40:24
unescape_form

unescape_form(str) Instance Public methods Unescapes form reserved characters

2015-06-12 05:45:22