Has a method been included in the list of insecure methods?
Returns integer 80
, the default port to use for HTTP requests:
Net::HTTP.default_port # => 80
Sets the body stream for the request:
req = Net::HTTP::Post.new(uri) # => #<Net::HTTP::Post POST> req.body_stream # => nil require 'stringio' req.body_stream = StringIO.new('xyzzy') # => #<StringIO:0x0000027d1e5affa8> req.body_stream # => #<StringIO:0x0000027d1e5affa8>
true if the response has a body.
Gets the entity body returned by the remote HTTP server.
If a block is given, the body is passed to the block, and the body is provided in fragments, as it is read in from the socket.
If dest
argument is given, response is read into that variable, with dest#<<
method (it could be String
or IO
, or any other object responding to <<
).
Calling this method a second or subsequent time for the same HTTPResponse
object will return the value already read.
http.request_get('/index.html') {|res| puts res.read_body } http.request_get('/index.html') {|res| p res.read_body.object_id # 538149362 p res.read_body.object_id # 538149362 } # using iterator http.request_get('/index.html') {|res| res.read_body do |segment| print segment end }
Validates typecode v
, returns true
or false
.
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]
def child_nodes
: () -> Array[nil | Node]