Net::HTTP class of PicoRuby
Singleton methods
get
Net::HTTP.get(String uri_or_host, String path, ?Integer? port) -> String?
get_response
Net::HTTP.get_response(String uri_or_host, ?String? path, ?Integer? port) -> HTTPResponse
new
Net::HTTP.new(String address, ?Integer? port) -> Net::HTTP
post_form
Net::HTTP.post_form(String url, Hash[untyped, untyped] params) -> HTTPResponse
Instance methods
active?
instance.active?() -> bool
delete
instance.delete(String path, ?Hash[String, String]? initheader, ?untyped dest) { (String) -> void } -> HTTPResponse
finish
instance.finish() -> void
get
instance.get(String path, ?Hash[String, String]? initheader, ?untyped dest) ?{ (String) -> void } -> HTTPResponse
head
instance.head(String path, ?Hash[String, String]? initheader) -> HTTPResponse
post
instance.post(String path, String data, ?Hash[String, String]? initheader, ?untyped dest) { (String) -> void } -> HTTPResponse
put
instance.put(String path, String data, ?Hash[String, String]? initheader, ?untyped dest) { (String) -> void } -> HTTPResponse
request
instance.request(HTTPGenericRequest req, ?String? body) ?{ (String) -> void } -> HTTPResponse
start
instance.start() { (HTTP) -> untyped } -> HTTPResponse
instance.start() -> HTTP
use_ssl?
instance.use_ssl?() -> bool
Attr accessors
address (accessor)
instance.address -> String
port (accessor)
instance.port -> Integer
open_timeout (accessor)
instance.open_timeout -> Integer
read_timeout (accessor)
instance.read_timeout -> Integer
use_ssl (accessor)
instance.use_ssl -> bool
verify_mode (accessor)
instance.verify_mode -> Integer?
ca_file (accessor)
instance.ca_file -> String?
ca_path (accessor)
instance.ca_path -> String?
started (reader)
instance.started -> bool