See IO.foreach
when path
is a file.
See Dir.foreach
when path
is a directory.
Returns a Echo
object, for the given strings
Iterates a block for each line.
v
String
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" # => "https" uri #=> #<URI::HTTP:0x000000008e89e8 URL:https://my.example.com>
Checks if URI
has a path
Iterates over the request headers
Iterates over each header in the response
Will this response body be returned using chunked transfer-encoding?
Enables chunked transfer encoding.
Return value associated with key
.
If there is no value for key
and no block is given, returns ifnone
.
Otherwise, calls block passing in the given key
.
See ::DBM#fetch
for more information.
Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Mutex
.