Module

WEBrick::HTTPUtils

Inheritance

Classes & Modules

Constants

Name   Description
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", "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", "tif" => "image/tiff", "tiff" => "image/tiff", "txt" => "text/plain", "xbm" => "image/x-xbitmap", "xls" => "application/vnd.ms-excel", "xml" => "text/xml", "xpm" => "image/x-xpixmap", "xwd" => "image/x-xwindowdump", "zip" => "application/zip", }
ESCAPED = /%([0-9a-fA-F]{2})/
NONASCII = _make_regex(nonascii)
UNESCAPED = _make_regex(control+space+delims+unwise+nonascii)
UNESCAPED_FORM = _make_regex(reserved+control+delims+unwise+nonascii)
UNESCAPED_PCHAR = _make_regex!(unreserved+":@&=+$,")

Methods

Instance

Visibility Signature
public _escape (str, regex)
public _make_regex (str)
public _make_regex! (str)
public _unescape (str, regex)
public dequote (str)
public escape (str)
public escape8bit (str)
public escape_form (str)
public escape_path (str)
public load_mime_types (file)
public mime_type (filename, mime_tab)
public normalize_path (path)
public parse_form_data (io, boundary)
public parse_header (raw)
public parse_query (str)
public parse_qvalues (value)
public parse_range_header (ranges_specifier)
public quote (str)
public split_header_value (str)
public unescape (str)
public unescape_form (str)

Instance Method Detail

_escape(str, regex)

_make_regex(str)

_make_regex!(str)

_unescape(str, regex)

dequote(str)

escape(str)

escape8bit(str)

escape_form(str)

escape_path(str)

load_mime_types(file)

Load Apache compatible mime.types file.

mime_type(filename, mime_tab)

normalize_path(path)

parse_form_data(io, boundary)

parse_header(raw)

parse_query(str)

parse_qvalues(value)

parse_range_header(ranges_specifier)

quote(str)

split_header_value(str)

unescape(str)

unescape_form(str)