Checks if URI
has a path
Checks if URI
is relative
Returns normalized URI
Destructive version of normalize
returns attributes.
setter for attributes val
Iterates over the request headers
Sets the response’s status to the status
code
Iterates over each header in the response
Will this response body be returned using chunked transfer-encoding?
Enables chunked transfer encoding.
Unmounts dir
Shortcut for logging a FATAL
message
Will the logger output FATAL
messages?
Updates the database with multiple values from the specified object. Takes any object which implements the each_pair
method, including Hash
and DBM
objects.
Returns self
.
Returns the least significant eight bits of the return code of stat. Only available if exited?
is true
.
fork { } #=> 26572 Process.wait #=> 26572 $?.exited? #=> true $?.exitstatus #=> 0 fork { exit 99 } #=> 26573 Process.wait #=> 26573 $?.exited? #=> true $?.exitstatus #=> 99
Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Mutex
.
Returns the maximum size of the queue.
Sets the maximum size of the queue to the given number
.
Returns the conversion path of ec.
The result is an array of conversions.
ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP", crlf_newline: true) p ec.convpath #=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>], # [#<Encoding:UTF-8>, #<Encoding:EUC-JP>], # "crlf_newline"]
Each element of the array is a pair of encodings or a string. A pair means an encoding conversion. A string means a decorator.
In the above example, [#<Encoding:ISO-8859-1>,