Class: HTTP (Net)

Overview
Module Structure
Class Hierarchy
Constants
HTTP::Revision
HTTP::HTTPVersion
HTTP::ProxyMod
Class Aliases
HTTP.is_version_1_1?
HTTP.is_version_1_2?
HTTP.newobj
Class Attributes
HTTP.proxy_address [R] (1/2)
HTTP.proxy_port [R] (1/2)
HTTP.proxy_user [R] (1/2)
HTTP.proxy_pass [R] (1/2)
Class Methods
HTTP.version_1_2
HTTP.version_1_1
HTTP.version_1_2?
HTTP.version_1_1?
HTTP.get_print / 3
HTTP.get (1/2) / 3
HTTP.get_response / 4
HTTP.post_form / 2
HTTP.default_port
HTTP.http_default_port
HTTP.https_default_port
HTTP.socket_type
HTTP.start (1/2) / 7
HTTP.new / 6
HTTP.Proxy / 4
HTTP.proxy_class?
HTTP.ssl_context_accessor / 1
Instance Aliases
HTTP#active?
HTTP#proxyaddr
HTTP#proxyport
HTTP#get2
HTTP#head2
HTTP#post2
HTTP#put2
HTTP#use_ssl
HTTP#timeout=
Instance Attributes
HTTP#address [R]
HTTP#port [R]
HTTP#open_timeout [RW]
HTTP#read_timeout [R]
HTTP#close_on_empty_response [RW]
Instance Methods
HTTP#initialize / 2
HTTP#inspect
HTTP#set_debug_output / 1
HTTP#read_timeout= / 1
HTTP#started?
HTTP#use_ssl? (1/2)
HTTP#start (2/E)
HTTP#do_start
HTTP#connect
HTTP#on_connect
HTTP#finish
HTTP#do_finish
HTTP#proxy?
HTTP#proxy_address (2/E)
HTTP#proxy_port (2/E)
HTTP#proxy_user (2/E)
HTTP#proxy_pass (2/E)
HTTP#conn_address
HTTP#conn_port
HTTP#edit_path / 1
HTTP#get (2/E) / 4
HTTP#head / 2
HTTP#post / 5
HTTP#put / 3
HTTP#proppatch / 3
HTTP#lock / 3
HTTP#unlock / 3
HTTP#options / 2
HTTP#propfind / 3
HTTP#delete / 2
HTTP#move / 2
HTTP#copy / 2
HTTP#mkcol / 3
HTTP#trace / 2
HTTP#request_get / 3
HTTP#request_head / 3
HTTP#request_post / 4
HTTP#request_put / 4
HTTP#send_request / 4
HTTP#request / 3
HTTP#begin_transport / 1
HTTP#end_transport / 2
HTTP#keep_alive? / 2
HTTP#addr_port
HTTP#D / 1
HTTP#use_ssl? (2/E)
HTTP#use_ssl= / 1
HTTP#ssl_timeout
HTTP#ssl_timeout= / 1
HTTP#peer_cert
is a submodule of
module: Net   
is modularized into
module: ProxyDelta   
class: Get   
class: Head   
class: Post   
class: Put   
class: Delete   
class: Options   
class: Trace   
class: Propfind   
class: Proppatch   
class: Mkcol   
class: Copy   
class: Move   
class: Lock   
class: Unlock   
inherits from
  Protocol ( Net )
has properties
constant: Revision   
constant: HTTPVersion   
class method: version_1_2   
class method: version_1_1   
class method: version_1_2?   
class method: version_1_1?   
class alias: is_version_1_1? version_1_1?   
class alias: is_version_1_2? version_1_2?   
class method: get_print / 3   
class method: get (1/2) / 3   
class method: get_response / 4   
class method: post_form / 2   
class method: default_port   
class method: http_default_port   
class method: https_default_port   
class method: socket_type   
class method: start (1/2) / 7   
class alias: newobj new   
class method: new / 6   
method: initialize / 2   
method: inspect   
method: set_debug_output / 1   
attribute: address [R]   
attribute: port [R]   
attribute: open_timeout [RW]   
attribute: read_timeout [R]   
method: read_timeout= / 1   
method: started?   
alias: active? started?   
attribute: close_on_empty_response [RW]   
method: use_ssl? (1/2)   
method: start (2/E)   
method: do_start   
method: connect   
method: on_connect   
method: finish   
method: do_finish   
class method: Proxy / 4   
class method: proxy_class?   
class attribute: proxy_address (1/2) [R]   
class attribute: proxy_port (1/2) [R]   
class attribute: proxy_user (1/2) [R]   
class attribute: proxy_pass (1/2) [R]   
method: proxy?   
method: proxy_address (2/E)   
method: proxy_port (2/E)   
method: proxy_user (2/E)   
method: proxy_pass (2/E)   
alias: proxyaddr proxy_address   
alias: proxyport proxy_port   
method: conn_address   
method: conn_port   
method: edit_path / 1   
method: get (2/E) / 4   
method: head / 2   
method: post / 5   
method: put / 3   
method: proppatch / 3   
method: lock / 3   
method: unlock / 3   
method: options / 2   
method: propfind / 3   
method: delete / 2   
method: move / 2   
method: copy / 2   
method: mkcol / 3   
method: trace / 2   
method: request_get / 3   
method: request_head / 3   
method: request_post / 4   
method: request_put / 4   
alias: get2 request_get   
alias: head2 request_head   
alias: post2 request_post   
alias: put2 request_put   
method: send_request / 4   
method: request / 3   
method: begin_transport / 1   
method: end_transport / 2   
method: keep_alive? / 2   
method: addr_port   
method: D / 1   
constant: ProxyMod   
method: use_ssl? (2/E)   
alias: use_ssl use_ssl?   
method: use_ssl= / 1   
class method: ssl_context_accessor / 1   
method: ssl_timeout   
method: ssl_timeout= / 1   
alias: timeout= ssl_timeout   
method: peer_cert   
is defined at
#278, #1604, #2269 in net/http.rb  
#106 in net/https.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: Net
  class: Protocol
✗ class: HTTP
module: ProxyDelta     
class: Get     
class: Head     
class: Post     
class: Put     
class: Delete     
class: Options     
class: Trace     
class: Propfind     
class: Proppatch     
class: Mkcol     
class: Copy     
class: Move     
class: Lock     
class: Unlock     

Class Hierarchy

Object ( Builtin-Module )
Protocol ( Net )
has properties
class method: protocol_param / 2   
HTTP ( Net )
has properties
constant: Revision   
constant: HTTPVersion   
class method: version_1_2   
class method: version_1_1   
class method: version_1_2?   
class method: version_1_1?   
class alias: is_version_1_1? version_1_1?   
class alias: is_version_1_2? version_1_2?   
class method: get_print / 3   
class method: get (1/2) / 3   
class method: get_response / 4   
class method: post_form / 2   
class method: default_port   
class method: http_default_port   
class method: https_default_port   
class method: socket_type   
class method: start (1/2) / 7   
class alias: newobj new   
class method: new / 6   
method: initialize / 2   
method: inspect   
method: set_debug_output / 1   
attribute: address [R]   
attribute: port [R]   
attribute: open_timeout [RW]   
attribute: read_timeout [R]   
method: read_timeout= / 1   
method: started?   
alias: active? started?   
attribute: close_on_empty_response [RW]   
method: use_ssl? (1/2)   
method: start (2/E)   
method: do_start   
method: connect   
method: on_connect   
method: finish   
method: do_finish   
class method: Proxy / 4   
class method: proxy_class?   
class attribute: proxy_address (1/2) [R]   
class attribute: proxy_port (1/2) [R]   
class attribute: proxy_user (1/2) [R]   
class attribute: proxy_pass (1/2) [R]   
method: proxy?   
method: proxy_address (2/E)   
method: proxy_port (2/E)   
method: proxy_user (2/E)   
method: proxy_pass (2/E)   
alias: proxyaddr proxy_address   
alias: proxyport proxy_port   
method: conn_address   
method: conn_port   
method: edit_path / 1   
method: get (2/E) / 4   
method: head / 2   
method: post / 5   
method: put / 3   
method: proppatch / 3   
method: lock / 3   
method: unlock / 3   
method: options / 2   
method: propfind / 3   
method: delete / 2   
method: move / 2   
method: copy / 2   
method: mkcol / 3   
method: trace / 2   
method: request_get / 3   
method: request_head / 3   
method: request_post / 4   
method: request_put / 4   
alias: get2 request_get   
alias: head2 request_head   
alias: post2 request_post   
alias: put2 request_put   
method: send_request / 4   
method: request / 3   
method: begin_transport / 1   
method: end_transport / 2   
method: keep_alive? / 2   
method: addr_port   
method: D / 1   
constant: ProxyMod   
method: use_ssl? (2/E)   
alias: use_ssl use_ssl?   
method: use_ssl= / 1   
class method: ssl_context_accessor / 1   
method: ssl_timeout   
method: ssl_timeout= / 1   
alias: timeout= ssl_timeout   
method: peer_cert   
HTTPGenericRequest ( Net )
HTTPRequest ( Net )
  Get ( Net::HTTP )   
  Head ( Net::HTTP )   
  Post ( Net::HTTP )   
  Put ( Net::HTTP )   
  Delete ( Net::HTTP )   
  Options ( Net::HTTP )   
  Trace ( Net::HTTP )   
  Propfind ( Net::HTTP )   
  Proppatch ( Net::HTTP )   
  Mkcol ( Net::HTTP )   
  Copy ( Net::HTTP )   
  Move ( Net::HTTP )   
  Lock ( Net::HTTP )   
  Unlock ( Net::HTTP )   

Constants

HTTP::Revision

#281 in net/http.rb

Revision = %q$Revision: 29865 $.split[1]   

HTTP::HTTPVersion

#282 in net/http.rb

HTTPVersion = '1.1'   

HTTP::ProxyMod

#2270 in net/http.rb

ProxyMod = ProxyDelta   

Class Aliases

HTTP.is_version_1_1?

#317 in net/http.rb

is_version_1_1? version_1_1?   

HTTP.is_version_1_2?

#318 in net/http.rb

is_version_1_2? version_1_2?   

HTTP.newobj

#444 in net/http.rb

newobj new   

Class Attributes

HTTP.proxy_address [R] (1/2)

#663 in net/http.rb

HTTP.proxy_port [R] (1/2)

#664 in net/http.rb

HTTP.proxy_user [R] (1/2)

#665 in net/http.rb

HTTP.proxy_pass [R] (1/2)

#666 in net/http.rb

Class Methods

HTTP.version_1_2

#294 in net/http.rb

version_1_2

HTTP.version_1_1

#300 in net/http.rb

version_1_1

HTTP.version_1_2?

#306 in net/http.rb

version_1_2?

HTTP.version_1_1?

#312 in net/http.rb

version_1_1?

HTTP.get_print / 3

#336 in net/http.rb

get_print ( uri_or_host ,
  path = nil ,
  port = nil )

HTTP.get (1/2) / 3

#355 in net/http.rb

get ( uri_or_host ,
  path = nil ,
  port = nil )

HTTP.get_response / 4

#371 in net/http.rb

get_response ( uri_or_host ,
  path = nil ,
  port = nil ,
  &block )

HTTP.post_form / 2

#400 in net/http.rb

post_form ( url ,
  params )

HTTP.default_port

#414 in net/http.rb

default_port

HTTP.http_default_port

#419 in net/http.rb

http_default_port

HTTP.https_default_port

#424 in net/http.rb

https_default_port

HTTP.socket_type

#428 in net/http.rb

socket_type

HTTP.start (1/2) / 7

#439 in net/http.rb

start ( address ,
  port = nil ,
  p_addr = nil ,
  p_port = nil ,
  p_user = nil ,
  p_pass = nil ,
  &block )

HTTP.new / 6

#450 in net/http.rb

new ( address ,
  port = nil ,
  p_addr = nil ,
  p_port = nil ,
  p_user = nil ,
  p_pass = nil )

HTTP.Proxy / 4

#641 in net/http.rb

Proxy ( p_addr ,
  p_port = nil ,
  p_user = nil ,
  p_pass = nil )

HTTP.proxy_class?

#659 in net/http.rb

proxy_class?

HTTP.ssl_context_accessor / 1

#129 in net/https.rb

ssl_context_accessor ( name )

Instance Aliases

HTTP#active?

#520 in net/http.rb

active? started?   

HTTP#proxyaddr

#694 in net/http.rb

proxyaddr proxy_address   

HTTP#proxyport

#695 in net/http.rb

proxyport proxy_port   

HTTP#get2

#999 in net/http.rb

get2 request_get   

HTTP#head2

#1000 in net/http.rb

head2 request_head   

HTTP#post2

#1001 in net/http.rb

post2 request_post   

HTTP#put2

#1002 in net/http.rb

put2 request_put   

HTTP#use_ssl

#113 in net/https.rb

use_ssl use_ssl?   

HTTP#timeout=

#165 in net/https.rb

timeout= ssl_timeout   

Instance Attributes

HTTP#address [R]

#494 in net/http.rb

HTTP#port [R]

#497 in net/http.rb

HTTP#open_timeout [RW]

#502 in net/http.rb

HTTP#read_timeout [R]

#507 in net/http.rb

HTTP#close_on_empty_response [RW]

#522 in net/http.rb

Instance Methods

HTTP#initialize / 2

#460 in net/http.rb

initialize ( address ,
  port = nil )

HTTP#inspect

#475 in net/http.rb

inspect

HTTP#set_debug_output / 1

#488 in net/http.rb

set_debug_output ( output )

HTTP#read_timeout= / 1

#510 in net/http.rb

read_timeout= ( sec )

HTTP#started?

#516 in net/http.rb

started?

HTTP#use_ssl? (1/2)

#525 in net/http.rb

use_ssl?

HTTP#start (2/E)

#538 in net/http.rb

start

HTTP#do_start

#552 in net/http.rb

do_start

HTTP#connect

#558 in net/http.rb

connect

HTTP#on_connect

#595 in net/http.rb

on_connect

HTTP#finish

#601 in net/http.rb

finish

HTTP#do_finish

#606 in net/http.rb

do_finish

HTTP#proxy?

#670 in net/http.rb

proxy?

HTTP#proxy_address (2/E)

#675 in net/http.rb

proxy_address

HTTP#proxy_port (2/E)

#680 in net/http.rb

proxy_port

HTTP#proxy_user (2/E)

#685 in net/http.rb

proxy_user

HTTP#proxy_pass (2/E)

#690 in net/http.rb

proxy_pass

HTTP#conn_address

#701 in net/http.rb

conn_address

HTTP#conn_port

#705 in net/http.rb

conn_port

HTTP#edit_path / 1

#709 in net/http.rb

edit_path ( path )

HTTP#get (2/E) / 4

#770 in net/http.rb

get ( path ,
  initheader = nil ,
  dest = nil ,
  &block )

HTTP#head / 2

#800 in net/http.rb

head ( path ,
  initheader = nil )

HTTP#post / 5

#843 in net/http.rb

post ( path ,
  data ,
  initheader = nil ,
  dest = nil ,
  &block )

HTTP#put / 3

#856 in net/http.rb

put ( path ,
  data ,
  initheader = nil )

HTTP#proppatch / 3

#864 in net/http.rb

proppatch ( path ,
  body ,
  initheader = nil )

HTTP#lock / 3

#870 in net/http.rb

lock ( path ,
  body ,
  initheader = nil )

HTTP#unlock / 3

#876 in net/http.rb

unlock ( path ,
  body ,
  initheader = nil )

HTTP#options / 2

#882 in net/http.rb

options ( path ,
  initheader = nil )

HTTP#propfind / 3

#888 in net/http.rb

propfind ( path ,
  body = nil ,
  initheader = {'Depth' => '0'} )

HTTP#delete / 2

#894 in net/http.rb

delete ( path ,
  initheader = {'Depth' => 'Infinity'} )

HTTP#move / 2

#900 in net/http.rb

move ( path ,
  initheader = nil )

HTTP#copy / 2

#906 in net/http.rb

copy ( path ,
  initheader = nil )

HTTP#mkcol / 3

#912 in net/http.rb

mkcol ( path ,
  body = nil ,
  initheader = nil )

HTTP#trace / 2

#918 in net/http.rb

trace ( path ,
  initheader = nil )

HTTP#request_get / 3

#947 in net/http.rb

request_get ( path ,
  initheader = nil ,
  &block )

HTTP#request_head / 3

#961 in net/http.rb

request_head ( path ,
  initheader = nil ,
  &block )

HTTP#request_post / 4

#991 in net/http.rb

request_post ( path ,
  data ,
  initheader = nil ,
  &block )

HTTP#request_put / 4

#995 in net/http.rb

request_put ( path ,
  data ,
  initheader = nil ,
  &block )

HTTP#send_request / 4

#1015 in net/http.rb

send_request ( name ,
  path ,
  data = nil ,
  header = nil )

HTTP#request / 3

#1033 in net/http.rb

request ( req ,
  body = nil ,
  &block )

HTTP#begin_transport / 1

#1068 in net/http.rb

begin_transport ( req )

HTTP#end_transport / 2

#1081 in net/http.rb

end_transport ( req ,
  res )

HTTP#keep_alive? / 2

#1098 in net/http.rb

keep_alive? ( req ,
  res )

HTTP#addr_port

#1114 in net/http.rb

addr_port

HTTP#D / 1

#1122 in net/http.rb

D ( msg )

HTTP#use_ssl? (2/E)

#108 in net/https.rb

use_ssl?

HTTP#use_ssl= / 1

#119 in net/https.rb

use_ssl= ( flag )

HTTP#ssl_timeout

#152 in net/https.rb

ssl_timeout

HTTP#ssl_timeout= / 1

#157 in net/https.rb

ssl_timeout= ( sec )

HTTP#peer_cert

#167 in net/https.rb

peer_cert