Class URI::HTTP
In: lib/uri/http.rb
Parent: Generic

RFC1738 section 3.3.

Methods

build   new   request_uri  

Constants

DEFAULT_PORT = 80
COMPONENT = [ :scheme, :userinfo, :host, :port, :path, :query, :fragment

Public Class methods

Description

Create a new URI::HTTP object from components of URI::HTTP with check. It is scheme, userinfo, host, port, path, query and fragment. It provided by an Array of a Hash.

[Source]

    # File lib/uri/http.rb, line 34
34:     def self.build(args)
35:       tmp = Util::make_components_hash(self, args)
36:       return super(tmp)
37:     end

Description

Create a new URI::HTTP object from ``generic’’ components with no check.

[Source]

    # File lib/uri/http.rb, line 45
45:     def initialize(*arg)
46:       super(*arg)
47:     end

Public Instance methods

Description

Returns: path + ’?’ + query

[Source]

    # File lib/uri/http.rb, line 54
54:     def request_uri
55:       r = path_query
56:       if r[0] != ?/
57:         r = '/' + r
58:       end
59: 
60:       r
61:     end

[Validate]