ライブラリ
- ビルトイン (36)
-
net
/ ftp (48) -
net
/ http (1946) -
rubygems
/ remote _ fetcher (36)
クラス
-
Gem
:: RemoteFetcher (36) - Module (36)
-
Net
:: FTP (48) -
Net
:: HTTP (1190) -
Net
:: HTTPGenericRequest (108) -
Net
:: HTTPResponse (144)
モジュール
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (492)
キーワード
- [] (12)
- []= (12)
- active? (12)
-
add
_ field (12) - address (12)
-
basic
_ auth (12) - body (24)
- body= (12)
-
body
_ exist? (12) -
body
_ stream (12) -
body
_ stream= (12) -
ca
_ file (12) -
ca
_ file= (12) -
ca
_ path (12) -
ca
_ path= (12) -
canonical
_ each (12) - cert (12)
- cert= (12)
-
cert
_ store (12) -
cert
_ store= (12) - chunked? (12)
- ciphers (12)
- ciphers= (12)
-
close
_ on _ empty _ response (12) -
close
_ on _ empty _ response= (12) - code (12)
-
connection
_ for (12) -
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) -
continue
_ timeout (12) -
continue
_ timeout= (12) - copy (12)
- delete (24)
- each (12)
-
each
_ capitalized (12) -
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - entity (12)
- fetch (36)
- finish (12)
-
form
_ data= (12) - get (24)
- get2 (24)
-
get
_ fields (12) - head (12)
- head2 (24)
- header (12)
-
http
_ version (12) - inspect (12)
-
keep
_ alive _ timeout (12) -
keep
_ alive _ timeout= (12) - key (12)
- key= (12)
- key? (12)
- length (12)
-
local
_ host (12) -
local
_ host= (12) -
local
_ port (12) -
local
_ port= (12) - lock (12)
-
main
_ type (12) - method (24)
- mkcol (12)
- move (12)
- msg (12)
- name (12)
-
open
_ timeout (24) -
open
_ timeout= (24) - patch (24)
- path (12)
-
peer
_ cert (12) - port (12)
- post (24)
- post2 (24)
- propfind (12)
- proppatch (12)
- proxy? (12)
-
proxy
_ address (12) -
proxy
_ address= (12) -
proxy
_ basic _ auth (12) -
proxy
_ from _ env= (12) -
proxy
_ from _ env? (12) -
proxy
_ pass (12) -
proxy
_ pass= (12) -
proxy
_ port (12) -
proxy
_ port= (12) -
proxy
_ uri (12) -
proxy
_ user (12) -
proxy
_ user= (12) - proxyaddr (12)
- proxyport (12)
- put (12)
- put2 (24)
- range (12)
- range= (24)
-
range
_ length (12) -
read
_ body (24) -
read
_ timeout (24) -
read
_ timeout= (24) -
reader
_ header (12) - request (36)
-
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - reset (12)
- response (24)
-
response
_ body _ permitted? (12) -
send
_ request (12) -
set
_ content _ type (12) -
set
_ debug _ output (12) -
set
_ form _ data (12) -
set
_ range (36) - size (12)
-
ssl
_ timeout (12) -
ssl
_ timeout= (12) -
ssl
_ version (12) -
ssl
_ version= (12) - start (24)
- started? (12)
-
sub
_ type (12) -
to
_ s (12) - trace (12)
-
type
_ params (12) - unlock (12)
-
use
_ ssl= (12) -
use
_ ssl? (12) - value (12)
-
verify
_ callback (12) -
verify
_ callback= (12) -
verify
_ depth (12) -
verify
_ depth= (12) -
verify
_ mode (12) -
verify
_ mode= (12) -
write
_ timeout (7) -
write
_ timeout= (7)
検索結果
先頭5件
- Net
:: HTTP # head(path , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # head2(path , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # head2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse - Net
:: HTTP # request _ head(path , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # request _ head(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse
-
Net
:: HTTP # head(path , header = nil) -> Net :: HTTPResponse (21113.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse のインスタンスを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse のインスタンスを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*......。
1.1 互換モードの場合は、レスポンスに応じて例外が発生します。
//emlist[例][ruby]{
require 'net/http'
response = nil
Net::HTTP.start('some.www.server', 80) {|http|
response = http.head('/index.html')
}
p response['content-type']
//}
@see Net::HTTP#request_head... -
Net
:: HTTP # head2(path , header = nil) -> Net :: HTTPResponse (21113.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*',......... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # head2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (21113.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*',......... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # request _ head(path , header = nil) -> Net :: HTTPResponse (21113.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*',......... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # request _ head(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (21113.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*',......... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # copy(path , initheader = nil) -> Net :: HTTPResponse (21107.0) -
サーバの path に COPY リクエストを ヘッダを initheader として送ります。
...スポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Copy... -
Net
:: HTTP # delete(path , initheader = nil) -> Net :: HTTPResponse (21107.0) -
サーバの path に DELETE リクエストを ヘッダを initheader として送ります。
...ポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Delete... -
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (21107.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......呼びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest.......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) do |str|
f.write str
end
}
//}
@see Net::HTTP#request_get... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (21107.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......呼びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest.......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) do |str|
f.write str
end
}
//}
@see Net::HTTP#request_get...