Aborts the current mail transaction
Sets the parent of this child to the supplied argument.
Must be a Parent
object. If this object is the same object as the existing parent of this child, no action is taken. Otherwise, this child is removed from the current parent (if one exists), and is added to the new parent.
The parent added
return the setter for the uri, tag_name pair, or nil.
Ensure path
and path with extension
are identical.
Unpacks the gem into the given directory.
Indicate if this NameTuple
is for a prerelease version.
A version is considered a prerelease if it contains a letter.
Sets userinfo, argument is string like ‘name:pass’.
v
Public setter for the user
component (with validation).
See also URI::Generic.check_user
.
require 'uri' uri = URI.parse("http://john:S3nsit1ve@my.example.com") uri.user = "sam" uri.to_s #=> "http://sam:V3ry_S3nsit1ve@my.example.com"
Returns the userinfo, either as ‘user’ or ‘user:password’.
Returns the user component.
v
Public setter for the opaque component v
(with validation).
See also URI::Generic.check_opaque
.
Returns true if URI
is hierarchical.
URI
has components listed in order of decreasing significance from left to right, see RFC3986 tools.ietf.org/html/rfc3986 1.2.3.
require 'uri' uri = URI.parse("http://my.example.com/") uri.hierarchical? #=> true uri = URI.parse("mailto:joe@example.com") uri.hierarchical? #=> false
Returns extensions.
Setter for extensions val
.
Setter for headers v
.
Services the request req
which will fill in the response res
. See WEBrick::HTTPServlet::AbstractServlet#service
for details.