Duplicates the deflate stream.
Sends a GET request to the target and returns the HTTP
response as a Net::HTTPResponse
object. The target can either be specified as (uri
), or as (host
, path
, port
= 80); so:
res = Net::HTTP.get_response(URI('http://www.example.com/index.html')) print res.body
or:
res = Net::HTTP.get_response('www.example.com', '/index.html') print res.body
Returns the X.509 certificates the server presented.
The username of the proxy server, if one is configured.
Executes a request which uses a representation and returns its body.
Similar to search()
, but returns unique identifiers.
true if server advertises STARTTLS. You cannot get valid value before opening SMTP
session.
Private setter for the path of the URI::FTP
Inserts an child before another child @param child1 this is either an xpath or an Element
. If an Element
, child2 will be inserted before child1 in the child list of the parent. If an xpath, child2 will be inserted before the first child to match the xpath. @param child2 the child to insert @return the parent (self)
Creates threads that pick up UDP packets and passes them to do_write
for decoding.
Creates a thread that notifies waiting clients from the TupleSpace
.
Creates a thread that scans the tuplespace for expired tuples.