Yields each source URI
in the list.
Default fetcher instance. Use this instead of ::new
to reduce object allocation.
See IO.foreach
when path
is a file.
See Dir.foreach
when path
is a directory.
Executes the given command
with the options
parameter.
Example:
print sh.system("ls", "-l") sh.system("ls", "-l") | sh.head > STDOUT
Returns a Echo
object, for the given strings
Iterates a block for each line.
v
Public setter for the scheme component v
(with validation).
See also URI::Generic.check_scheme
.
require 'uri' uri = URI.parse("http://my.example.com") uri.scheme = "https" uri.to_s #=> "https://my.example.com"
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
Iterates over the request headers
Iterates over each header in the response
Will this response body be returned using chunked transfer-encoding?