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

escape_path

escape_path(str) Instance Public methods Escapes path str

2015-06-12 05:37:46
parse_qvalues

parse_qvalues(value) Class Public methods Parses q values in value

2015-06-12 05:06:27
unescape

unescape(str) Instance Public methods Unescapes HTTP reserved and unwise characters

2015-06-12 05:39:32
escape8bit

escape8bit(str) Instance Public methods Escapes 8 bit characters in str

2015-06-12 05:24:51
escape

escape(str) Instance Public methods Escapes HTTP reserved and unwise characters

2015-06-12 05:21:07
load_mime_types

load_mime_types(file) Class Public methods Loads Apache-compatible mime.types

2015-06-12 04:47:44
parse_form_data

parse_form_data(io, boundary) Class Public methods Parses form data in io

2015-06-12 04:53:52
parse_range_header

parse_range_header(ranges_specifier) Class Public methods Parses a

2015-06-12 05:07:29
mime_type

mime_type(filename, mime_tab) Class Public methods Returns the mime type of

2015-06-12 04:48:39
split_header_value

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

2015-06-12 05:15:26