Results for: "uri"

Sets the maximum number of times to retry an idempotent request in case of Net::ReadTimeout, IOError, EOFError, Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE, OpenSSL::SSL::SSLError, Timeout::Error. The initial value is 1.

Argument retries must be a non-negative numeric value:

http = Net::HTTP.new(hostname)
http.max_retries = 2   # => 2
http.max_retries       # => 2

Sets the write timeout, in seconds, for self to integer sec; the initial value is 60.

Argument sec must be a non-negative numeric value:

_uri = uri.dup
_uri.path = '/posts'
body = 'bar' * 200000
data = <<EOF
{"title": "foo", "body": "#{body}", "userId": "1"}
EOF
headers = {'content-type': 'application/json'}
http = Net::HTTP.new(hostname)
http.write_timeout # => 60
http.post(_uri.path, data, headers)
# => #<Net::HTTPCreated 201 Created readbody=true>
http.write_timeout = 0
http.post(_uri.path, data, headers) # Raises Net::WriteTimeout.
No documentation available
No documentation available

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

An alias for source_lines, used to mimic the API from RubyVM::AbstractSyntaxTree to make it easier to migrate.

Similar to inspect, but respects the current level of indentation given by the pretty print object.

def variable_call?: () -> bool

def variable_call?: () -> bool

def variable_call?: () -> bool

def variable_call?: () -> bool

def variable_call?: () -> bool

def inheritance_operator: () -> String?

def ensure_keyword: () -> String

def variable_call?: () -> bool

def variable_call?: () -> bool

def variable_call?: () -> bool

def variable_call?: () -> bool

def experimental_everything?: () -> bool

def experimental_copy?: () -> bool

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

Implement the pretty print interface for Location.

Implement the pretty print interface for Token.

No documentation available
No documentation available
Search took: 5ms  ·  Total Results: 1431