Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/share/ruby
File: uri.rb
# frozen_string_literal: false
[0] Fix | Delete
# URI is a module providing classes to handle Uniform Resource Identifiers
[1] Fix | Delete
# (RFC2396[http://tools.ietf.org/html/rfc2396])
[2] Fix | Delete
#
[3] Fix | Delete
# == Features
[4] Fix | Delete
#
[5] Fix | Delete
# * Uniform handling of handling URIs
[6] Fix | Delete
# * Flexibility to introduce custom URI schemes
[7] Fix | Delete
# * Flexibility to have an alternate URI::Parser (or just different patterns
[8] Fix | Delete
# and regexp's)
[9] Fix | Delete
#
[10] Fix | Delete
# == Basic example
[11] Fix | Delete
#
[12] Fix | Delete
# require 'uri'
[13] Fix | Delete
#
[14] Fix | Delete
# uri = URI("http://foo.com/posts?id=30&limit=5#time=1305298413")
[15] Fix | Delete
# #=> #<URI::HTTP:0x00000000b14880
[16] Fix | Delete
# URL:http://foo.com/posts?id=30&limit=5#time=1305298413>
[17] Fix | Delete
# uri.scheme
[18] Fix | Delete
# #=> "http"
[19] Fix | Delete
# uri.host
[20] Fix | Delete
# #=> "foo.com"
[21] Fix | Delete
# uri.path
[22] Fix | Delete
# #=> "/posts"
[23] Fix | Delete
# uri.query
[24] Fix | Delete
# #=> "id=30&limit=5"
[25] Fix | Delete
# uri.fragment
[26] Fix | Delete
# #=> "time=1305298413"
[27] Fix | Delete
#
[28] Fix | Delete
# uri.to_s
[29] Fix | Delete
# #=> "http://foo.com/posts?id=30&limit=5#time=1305298413"
[30] Fix | Delete
#
[31] Fix | Delete
# == Adding custom URIs
[32] Fix | Delete
#
[33] Fix | Delete
# module URI
[34] Fix | Delete
# class RSYNC < Generic
[35] Fix | Delete
# DEFAULT_PORT = 873
[36] Fix | Delete
# end
[37] Fix | Delete
# @@schemes['RSYNC'] = RSYNC
[38] Fix | Delete
# end
[39] Fix | Delete
# #=> URI::RSYNC
[40] Fix | Delete
#
[41] Fix | Delete
# URI.scheme_list
[42] Fix | Delete
# #=> {"FTP"=>URI::FTP, "HTTP"=>URI::HTTP, "HTTPS"=>URI::HTTPS,
[43] Fix | Delete
# "LDAP"=>URI::LDAP, "LDAPS"=>URI::LDAPS, "MAILTO"=>URI::MailTo,
[44] Fix | Delete
# "RSYNC"=>URI::RSYNC}
[45] Fix | Delete
#
[46] Fix | Delete
# uri = URI("rsync://rsync.foo.com")
[47] Fix | Delete
# #=> #<URI::RSYNC:0x00000000f648c8 URL:rsync://rsync.foo.com>
[48] Fix | Delete
#
[49] Fix | Delete
# == RFC References
[50] Fix | Delete
#
[51] Fix | Delete
# A good place to view an RFC spec is http://www.ietf.org/rfc.html
[52] Fix | Delete
#
[53] Fix | Delete
# Here is a list of all related RFC's.
[54] Fix | Delete
# - RFC822[http://tools.ietf.org/html/rfc822]
[55] Fix | Delete
# - RFC1738[http://tools.ietf.org/html/rfc1738]
[56] Fix | Delete
# - RFC2255[http://tools.ietf.org/html/rfc2255]
[57] Fix | Delete
# - RFC2368[http://tools.ietf.org/html/rfc2368]
[58] Fix | Delete
# - RFC2373[http://tools.ietf.org/html/rfc2373]
[59] Fix | Delete
# - RFC2396[http://tools.ietf.org/html/rfc2396]
[60] Fix | Delete
# - RFC2732[http://tools.ietf.org/html/rfc2732]
[61] Fix | Delete
# - RFC3986[http://tools.ietf.org/html/rfc3986]
[62] Fix | Delete
#
[63] Fix | Delete
# == Class tree
[64] Fix | Delete
#
[65] Fix | Delete
# - URI::Generic (in uri/generic.rb)
[66] Fix | Delete
# - URI::FTP - (in uri/ftp.rb)
[67] Fix | Delete
# - URI::HTTP - (in uri/http.rb)
[68] Fix | Delete
# - URI::HTTPS - (in uri/https.rb)
[69] Fix | Delete
# - URI::LDAP - (in uri/ldap.rb)
[70] Fix | Delete
# - URI::LDAPS - (in uri/ldaps.rb)
[71] Fix | Delete
# - URI::MailTo - (in uri/mailto.rb)
[72] Fix | Delete
# - URI::Parser - (in uri/common.rb)
[73] Fix | Delete
# - URI::REGEXP - (in uri/common.rb)
[74] Fix | Delete
# - URI::REGEXP::PATTERN - (in uri/common.rb)
[75] Fix | Delete
# - URI::Util - (in uri/common.rb)
[76] Fix | Delete
# - URI::Escape - (in uri/common.rb)
[77] Fix | Delete
# - URI::Error - (in uri/common.rb)
[78] Fix | Delete
# - URI::InvalidURIError - (in uri/common.rb)
[79] Fix | Delete
# - URI::InvalidComponentError - (in uri/common.rb)
[80] Fix | Delete
# - URI::BadURIError - (in uri/common.rb)
[81] Fix | Delete
#
[82] Fix | Delete
# == Copyright Info
[83] Fix | Delete
#
[84] Fix | Delete
# Author:: Akira Yamada <akira@ruby-lang.org>
[85] Fix | Delete
# Documentation::
[86] Fix | Delete
# Akira Yamada <akira@ruby-lang.org>
[87] Fix | Delete
# Dmitry V. Sabanin <sdmitry@lrn.ru>
[88] Fix | Delete
# Vincent Batts <vbatts@hashbangbash.com>
[89] Fix | Delete
# License::
[90] Fix | Delete
# Copyright (c) 2001 akira yamada <akira@ruby-lang.org>
[91] Fix | Delete
# You can redistribute it and/or modify it under the same term as Ruby.
[92] Fix | Delete
# Revision:: $Id: uri.rb 53141 2015-12-16 05:07:31Z naruse $
[93] Fix | Delete
#
[94] Fix | Delete
[95] Fix | Delete
module URI
[96] Fix | Delete
# :stopdoc:
[97] Fix | Delete
VERSION_CODE = '001000'.freeze
[98] Fix | Delete
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
[99] Fix | Delete
# :startdoc:
[100] Fix | Delete
[101] Fix | Delete
end
[102] Fix | Delete
[103] Fix | Delete
require 'uri/common'
[104] Fix | Delete
require 'uri/generic'
[105] Fix | Delete
require 'uri/ftp'
[106] Fix | Delete
require 'uri/http'
[107] Fix | Delete
require 'uri/https'
[108] Fix | Delete
require 'uri/ldap'
[109] Fix | Delete
require 'uri/ldaps'
[110] Fix | Delete
require 'uri/mailto'
[111] Fix | Delete
[112] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function