Results for: "minmax"

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Like Net::HTTP.get, but writes the returned body to $stdout; returns nil.

Sets the continue timeout value, which is the number of seconds to wait for an expected 100 Continue response. If the HTTP object does not receive a response in this many seconds it sends the request body.

No documentation available
No documentation available

Like Net::HTTP.get, but writes the returned body to $stdout; returns nil.

Sets the continue timeout value, which is the number of seconds to wait for an expected 100 Continue response. If the HTTP object does not receive a response in this many seconds it sends the request body.

No documentation available
No documentation available
No documentation available

true if the response has a body.

Sets the encoding that should be used when reading the body:

Examples:

http = Net::HTTP.new(hostname)
req = Net::HTTP::Get.new('/')

http.request(req) do |res|
  p res.body.encoding # => #<Encoding:ASCII-8BIT>
end

http.request(req) do |res|
  res.body_encoding = "UTF-8"
  p res.body.encoding # => #<Encoding:UTF-8>
end

Occasionally it’s helpful to treat a string as if it were interpolated so that there’s a consistent interface for working with strings.

Occasionally it’s helpful to treat a string as if it were interpolated so that there’s a consistent interface for working with strings.

Return the byte offset of the start of the line corresponding to the given byte offset.

Returns the byte offset of the end of the line corresponding to the given byte offset.

These are the comments that are associated with this location that exist before the start of this location.

Attach a comment to the leading comments of this location.

These are the comments that are associated with this location that exist after the end of this location.

Attach a comment to the trailing comments of this location.

Returns all of the lines of the source code associated with this location.

Search took: 4ms  ·  Total Results: 1606