Returns the description corresponding to the HTTP status code
WEBrick::HTTPStatus.reason_phrase 404 => "Not Found"
Is code
a client error status?
Is code
a server error status?
Returns the description corresponding to the HTTP status code
WEBrick::HTTPStatus.reason_phrase 404 => "Not Found"
Is code
a client error status?
Is code
a server error status?
Parses an HTTP header raw
into a hash of header fields with an Array
of values.
Parses an HTTP header raw
into a hash of header fields with an Array
of values.
Parses q values in value
as used in Accept headers.
Parses q values in value
as used in Accept headers.
Parses the query component of a URI
in str
Parses the query component of a URI
in str
Unescapes form reserved characters in str
Creates TCP server sockets bound to address
:port
and returns them.
It will create IPV4 and IPV6 sockets on all interfaces.
Creates TCP server sockets bound to address
:port
and returns them.
It will create IPV4 and IPV6 sockets on all interfaces.
Generates a random string of length len
Generates a random string of length len
Set
the effective user ID, and if possible, the saved user ID of the process to the given user. Returns the new effective user ID. Not available on all platforms.
[Process.uid, Process.euid] #=> [0, 0] Process::UID.grant_privilege(31) #=> 31 [Process.uid, Process.euid] #=> [0, 31]
Set
the effective group ID, and if possible, the saved group ID of the process to the given group. Returns the new effective group ID. Not available on all platforms.
[Process.gid, Process.egid] #=> [0, 0] Process::GID.grant_privilege(31) #=> 33 [Process.gid, Process.egid] #=> [0, 33]
Rewinds to the beginning of the tar file entry