Create a new session id.
The session id is a secure random number by SecureRandom
if possible, otherwise an SHA512 hash based upon the time, a random number, and a constant string. This routine is used internally for automatically generated session ids.
Returns integer 80
, the default port to use for HTTP requests:
Net::HTTP.http_default_port # => 80
Sets the encoding to be used for the response body; returns the encoding.
The given value
may be:
An Encoding
object.
The name of an encoding.
An alias for an encoding name.
See Encoding
.
Examples:
http = Net::HTTP.new(hostname) http.response_body_encoding = Encoding::US_ASCII # => #<Encoding:US-ASCII> http.response_body_encoding = 'US-ASCII' # => "US-ASCII" http.response_body_encoding = 'ASCII' # => "ASCII"
Returns integer 80
, the default port to use for HTTP requests:
Net::HTTP.http_default_port # => 80
Sets the encoding to be used for the response body; returns the encoding.
The given value
may be:
An Encoding
object.
The name of an encoding.
An alias for an encoding name.
See Encoding
.
Examples:
http = Net::HTTP.new(hostname) http.response_body_encoding = Encoding::US_ASCII # => #<Encoding:US-ASCII> http.response_body_encoding = 'US-ASCII' # => "US-ASCII" http.response_body_encoding = 'ASCII' # => "ASCII"
Returns whether the response may have a body:
Net::HTTP::Post.new(uri).response_body_permitted? # => true Net::HTTP::Head.new(uri).response_body_permitted? # => false
Waits up to the continue timeout for a response from the server provided we’re speaking HTTP 1.1 and are expecting a 100-continue response.
Compile a BreakNode
node
Compile a EnsureNode
node
Compile a ForNode
node
Compile a OrNode
node
Compile a ParenthesesNode
node
Compile a RedoNode
node
Compile a RescueNode
node
Compile a RetryNode
node
Compile a ReturnNode
node
Compile a StatementsNode
node
Compile a StringNode
node
Compile a XStringNode
node
Dispatch enter and leave events for BreakNode
nodes and continue walking the tree.
Dispatch enter and leave events for EnsureNode
nodes and continue walking the tree.
Dispatch enter and leave events for ForNode
nodes and continue walking the tree.