種類
- インスタンスメソッド (1210)
- 特異メソッド (125)
- 文書 (102)
- ライブラリ (66)
- クラス (55)
ライブラリ
- ビルトイン (15)
-
net
/ http (748) -
rexml
/ document (154) -
rubygems
/ remote _ fetcher (22) - socket (66)
-
webrick
/ cgi (11) -
webrick
/ httpauth / basicauth (11) -
webrick
/ httpauth / htdigest (22) -
webrick
/ httpauth / htpasswd (22) -
webrick
/ httpauth / userdb (11) -
webrick
/ httprequest (22) -
webrick
/ httpservlet / abstract (88) -
webrick
/ httpservlet / cgihandler (22) -
webrick
/ httpservlet / erbhandler (22) -
webrick
/ httpservlet / filehandler (33) -
webrick
/ httpservlet / prochandler (33) -
webrick
/ httputils (88)
クラス
- Addrinfo (22)
- Data (4)
-
Gem
:: RemoteFetcher (22) -
Net
:: HTTP (242) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPResponse (99) -
REXML
:: Attribute (11) -
REXML
:: Attributes (132) -
REXML
:: Element (11) - Socket (44)
-
WEBrick
:: CGI (11) -
WEBrick
:: HTTPAuth :: BasicAuth (11) -
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPRequest (22) -
WEBrick
:: HTTPServlet :: AbstractServlet (88) -
WEBrick
:: HTTPServlet :: CGIHandler (22) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (22) -
WEBrick
:: HTTPServlet :: ERBHandler (22) -
WEBrick
:: HTTPServlet :: FileHandler (11) -
WEBrick
:: HTTPServlet :: ProcHandler (33) -
WEBrick
:: HTTPUtils :: FormData (88)
モジュール
-
Net
:: HTTPExceptions (11) -
Net
:: HTTPHeader (341) -
WEBrick
:: HTTPAuth :: UserDB (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - Get (11)
- HTTPRequest (11)
- Htdigest (11)
- Htpasswd (11)
- Lazy (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 3
. 0 . 0 (4) - Proxy (11)
- [] (33)
- []= (22)
-
add
_ field (11) - attribute (11)
-
basic
_ auth (11) - body (11)
- cgi (11)
-
cgi
/ session (11) - chunked? (11)
- code (11)
- connect (11)
-
connect
_ from (22) -
connect
_ nonblock (11) -
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type= (11) - define (4)
- delete (22)
-
delete
_ all (11) -
do
_ DELETE (11) -
do
_ GET (66) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (44) -
do
_ PUT (11) - drb (11)
- each (22)
-
each
_ attribute (11) -
each
_ capitalized _ name (11) -
each
_ data (11) -
each
_ header (11) -
each
_ key (11) -
each
_ name (11) -
each
_ value (11) - entity (11)
- fetch (33)
- filename (11)
- filename= (11)
-
form
_ data= (11) - get2 (22)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ fields (11) -
get
_ instance (22) -
get
_ passwd (33) -
get
_ print (22) -
get
_ proxy _ from _ env (11) -
get
_ response (22) - head2 (22)
-
http
_ version (11) - key? (11)
- length (11)
- list (11)
-
local
_ host= (11) -
local
_ port= (11) -
main
_ type (11) -
make
_ partial _ content (11) - method (22)
- msg (11)
- name (11)
- name= (11)
- namespace (11)
- namespaces (11)
-
net
/ http (11) - new (11)
- path (11)
- prefixes (11)
-
proxy
_ basic _ auth (11) - range (11)
-
range
_ length (11) - rdoc (11)
-
read
_ body (22) - request (33)
-
request
_ get (22) -
request
_ head (22) -
request
_ line (11) -
request
_ method (11) - response (11)
-
response
_ body _ permitted? (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
send
_ request (11) - service (22)
-
set
_ content _ type (11) -
set
_ form _ data (11) - size (11)
-
sub
_ type (11) - tcp (22)
-
to
_ ary (11) -
type
_ params (11) - value (11)
-
webrick
/ cgi (11)
検索結果
先頭5件
-
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (21286.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を......][ruby]{
# net/http version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil)... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (21286.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を......][ruby]{
# net/http version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil)... -
Net
:: HTTPResponse # http _ version -> String (21147.0) -
サーバがサポートしている HTTP のバージョンを文字列で返します。
...サーバがサポートしている HTTP のバージョンを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}... -
Net
:: HTTP . get(host , path , port = 80) -> String (21130.0) -
指定した対象に GET リクエストを送り、そのボディを 文字列として返します。
...指定した対象に GET リクエストを送り、そのボディを
文字列として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host......接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get... -
Net
:: HTTP . get(uri) -> String (21130.0) -
指定した対象に GET リクエストを送り、そのボディを 文字列として返します。
...指定した対象に GET リクエストを送り、そのボディを
文字列として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host......接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get... -
Net
:: HTTP # get2(path , header = nil) -> Net :: HTTPResponse (9258.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......ともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズ......@param header リクエストの HTTP ヘッダをハッシュで指定します。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|response|
p... -
Net
:: HTTP # get2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (9258.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......ともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズ......@param header リクエストの HTTP ヘッダをハッシュで指定します。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|response|
p... -
Net
:: HTTP # request _ get(path , header = nil) -> Net :: HTTPResponse (9258.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......ともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズ......@param header リクエストの HTTP ヘッダをハッシュで指定します。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|response|
p... -
Net
:: HTTP # request _ get(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (9258.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......ともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズ......@param header リクエストの HTTP ヘッダをハッシュで指定します。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|response|
p... -
Net
:: HTTP . get _ response(host , path = nil , port = nil) -> Net :: HTTPResponse (9230.0) -
指定した対象に GET リクエストを送り、そのレスポンスを Net::HTTPResponse として返します。
...指定した対象に GET リクエストを送り、そのレスポンスを
Net::HTTPResponse として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。......@param host 接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get...