class
Importance_1
v4.2.9 - Show latest stable - 0 notes - Superclass: Object

URI path and fragment escaping http://tools.ietf.org/html/rfc3986

Constants

PATH = /[^#{UNRESERVED}#{SUB_DELIMS}:@\/]/.freeze

SEGMENT = /[^#{UNRESERVED}#{SUB_DELIMS}:@]/.freeze

FRAGMENT = /[^#{UNRESERVED}#{SUB_DELIMS}:@\/\?]/.freeze

ESCAPED = /%[a-zA-Z0-9]{2}/.freeze

SUB_DELIMS = "!\\$&'\\(\\)\\*\\+,;=".freeze

UNRESERVED = "#{ALPHA}#{DIGIT}\\-\\._~".freeze

DIGIT = "0-9".freeze

ALPHA = "a-zA-Z".freeze

DEC2HEX = (0..255).to_a.map{ |i| ENCODE % i }.map{ |s| s.force_encoding(US_ASCII) }

EMPTY = "".force_encoding(US_ASCII).freeze

UTF_8 = Encoding::UTF_8

US_ASCII = Encoding::US_ASCII

ENCODE = "%%%02X".freeze

Attributes

Show files where this class is defined (1 file)
Register or log in to add new notes.