send_request

send_request(name, path, data = nil, header = nil) Instance Public methods Sends an HTTP request to the HTTP server. Also sends a DATA string if data is given. Returns a Net::HTTPResponse object. This method never raises Net::* exceptions. response = http.send_request('GET', '/index.html') puts response.body

set_debug_output

set_debug_output(output) Instance Public methods WARNING This method opens a serious security hole. Never use this method in production code. Sets an output stream for debugging. http = Net::HTTP.new http.set_debug_output $stderr http.start { .... }

start 2

start() Instance Public methods Opens a TCP connection and HTTP session. When this method is called with a block, it passes the Net::HTTP object to the block, and closes the TCP connection and HTTP session after the block has been executed. When called with a block, it returns the return value of the block; otherwise, it returns self.

started?

started?() Instance Public methods Returns true if the HTTP session has been started. active?

trace

trace(path, initheader = nil) Instance Public methods Sends a TRACE request to the path and gets a response, as an HTTPResponse object.

unlock

unlock(path, body, initheader = nil) Instance Public methods Sends a UNLOCK request to the path and gets a response, as an HTTPResponse object.

use_ssl=

use_ssl=(flag) Instance Public methods Turn on/off SSL. This flag must be set before starting session. If you change use_ssl value after session started, a Net::HTTP object raises IOError.

use_ssl?

use_ssl?() Instance Public methods Returns true if SSL/TLS is being used with HTTP.

new

new(m, reqbody, resbody, uri_or_path, initheader = nil) Class Public methods

body=

body=(str) Instance Public methods