ライブラリ
- ビルトイン (33)
-
net
/ ftp (44) -
net
/ http (3161) -
net
/ protocol (28) - openssl (11)
-
rubygems
/ remote _ fetcher (33)
クラス
-
Gem
:: RemoteFetcher (33) - Module (33)
-
Net
:: FTP (44) -
Net
:: HTTP (1354) -
Net
:: HTTPGenericRequest (99) -
Net
:: HTTPRequest (11) -
Net
:: HTTPResponse (165)
モジュール
-
Net
:: HTTPExceptions (11) -
Net
:: HTTPHeader (451)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
CODE
_ CLASS _ TO _ OBJ (11) -
CODE
_ TO _ OBJ (11) - Copy (11)
- Delete (11)
- Get (11)
- HTTP (11)
- HTTPAccepted (11)
- HTTPAlreadyReported (7)
- HTTPBadGateway (11)
- HTTPBadRequest (11)
- HTTPBadResponse (11)
- HTTPClientError (11)
- HTTPClientException (6)
- HTTPConflict (11)
- HTTPContinue (11)
- HTTPCreated (11)
- HTTPEarlyHints (6)
- HTTPError (11)
- HTTPExceptions (11)
- HTTPExpectationFailed (11)
- HTTPFailedDependency (11)
- HTTPFatalError (11)
- HTTPForbidden (11)
- HTTPFound (11)
- HTTPGatewayTimeOut (11)
- HTTPGatewayTimeout (6)
- HTTPGenericRequest (11)
- HTTPGone (11)
- HTTPHeader (11)
- HTTPHeaderSyntaxError (11)
- HTTPIMUsed (11)
- HTTPInformation (11)
- HTTPInsufficientStorage (11)
- HTTPInternalServerError (11)
- HTTPLengthRequired (11)
- HTTPLocked (11)
- HTTPLoopDetected (7)
- HTTPMethodNotAllowed (11)
- HTTPMisdirectedRequest (7)
- HTTPMovedPermanently (11)
- HTTPMovedTemporarily (11)
- HTTPMultiStatus (11)
- HTTPMultipleChoice (11)
- HTTPMultipleChoices (11)
- HTTPNetworkAuthenticationRequired (11)
- HTTPNoContent (11)
- HTTPNonAuthoritativeInformation (11)
- HTTPNotAcceptable (11)
- HTTPNotExtended (7)
- HTTPNotFound (11)
- HTTPNotImplemented (11)
- HTTPNotModified (11)
- HTTPOK (11)
- HTTPPartialContent (11)
- HTTPPayloadTooLarge (6)
- HTTPPaymentRequired (11)
- HTTPPermanentRedirect (10)
- HTTPPreconditionFailed (11)
- HTTPPreconditionRequired (11)
- HTTPProcessing (7)
- HTTPProxyAuthenticationRequired (11)
- HTTPRangeNotSatisfiable (6)
- HTTPRedirection (11)
- HTTPRequest (11)
- HTTPRequestEntityTooLarge (11)
- HTTPRequestHeaderFieldsTooLarge (11)
- HTTPRequestTimeOut (11)
- HTTPRequestTimeout (6)
- HTTPRequestURITooLarge (11)
- HTTPRequestURITooLong (11)
- HTTPRequestedRangeNotSatisfiable (11)
- HTTPResetContent (11)
- HTTPResponse (11)
- HTTPRetriableError (11)
- HTTPSeeOther (11)
- HTTPServerError (11)
- HTTPServerException (11)
- HTTPServiceUnavailable (11)
- HTTPSession (11)
- HTTPSuccess (11)
- HTTPSwitchProtocol (11)
- HTTPTemporaryRedirect (11)
- HTTPTooManyRequests (11)
- HTTPURITooLong (6)
- HTTPUnavailableForLegalReasons (8)
- HTTPUnknownResponse (11)
- HTTPUnprocessableEntity (11)
- HTTPUnsupportedMediaType (11)
- HTTPUpgradeRequired (11)
- HTTPUseProxy (11)
- HTTPVariantAlsoNegotiates (7)
- HTTPVersionNotSupported (11)
- Head (11)
- Lock (11)
- Mkcol (11)
- Move (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - OCSP (11)
- OpenTimeout (11)
- Options (11)
- Patch (11)
- Post (11)
- Propfind (11)
- Proppatch (11)
- Proxy (11)
- Put (11)
- ReadTimeout (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Trace (11)
- Unlock (11)
- WriteTimeout (6)
- [] (11)
- []= (11)
- active? (11)
-
add
_ field (11) - address (11)
-
basic
_ auth (11) - body (22)
- body= (11)
-
body
_ exist? (11) -
body
_ permitted? (11) -
body
_ stream (11) -
body
_ stream= (11) -
ca
_ file (11) -
ca
_ file= (11) -
ca
_ path (11) -
ca
_ path= (11) -
canonical
_ each (11) - cert (11)
- cert= (11)
-
cert
_ store (11) -
cert
_ store= (11) - chunked? (11)
- ciphers (11)
- ciphers= (11)
-
close
_ on _ empty _ response (11) -
close
_ on _ empty _ response= (11) - code (11)
-
connection
_ for (11) -
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type (11) -
content
_ type= (11) -
continue
_ timeout (11) -
continue
_ timeout= (11) - copy (11)
-
default
_ port (11) - delete (22)
- each (11)
-
each
_ capitalized (11) -
each
_ capitalized _ name (11) -
each
_ header (11) -
each
_ key (11) -
each
_ name (11) -
each
_ value (11) - entity (11)
- fetch (33)
- finish (11)
-
form
_ data= (11) - get (44)
- get2 (22)
-
get
_ fields (11) -
get
_ print (22) -
get
_ response (22) - head (11)
- head2 (22)
- header (11)
-
http
_ default _ port (11) -
http
_ version (11) -
https
_ default _ port (11) - inspect (11)
-
is
_ version _ 1 _ 1? (11) -
is
_ version _ 1 _ 2? (11) -
keep
_ alive _ timeout (11) -
keep
_ alive _ timeout= (11) - key (11)
- key= (11)
- key? (11)
- length (11)
-
local
_ host (11) -
local
_ host= (11) -
local
_ port (11) -
local
_ port= (11) - lock (11)
-
main
_ type (11) - method (22)
- mkcol (11)
- move (11)
- msg (11)
- name (11)
-
net
/ http (11) - new (22)
-
open
_ timeout (22) -
open
_ timeout= (22) - patch (22)
- path (11)
-
peer
_ cert (11) - port (11)
- post (22)
- post2 (22)
-
post
_ form (11) - propfind (11)
- proppatch (11)
- proxy? (11)
-
proxy
_ address (22) -
proxy
_ address= (11) -
proxy
_ basic _ auth (11) -
proxy
_ class? (11) -
proxy
_ from _ env= (11) -
proxy
_ from _ env? (11) -
proxy
_ pass (22) -
proxy
_ pass= (11) -
proxy
_ port (22) -
proxy
_ port= (11) -
proxy
_ uri (11) -
proxy
_ user (22) -
proxy
_ user= (11) - proxyaddr (11)
- proxyport (11)
- put (11)
- put2 (22)
- range (11)
- range= (22)
-
range
_ length (11) -
read
_ body (22) -
read
_ timeout (22) -
read
_ timeout= (22) -
reader
_ header (11) - request (33)
-
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) - reset (11)
- response (22)
-
response
_ body _ permitted? (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
send
_ request (11) -
set
_ content _ type (11) -
set
_ debug _ output (11) -
set
_ form _ data (11) -
set
_ range (33) - size (11)
-
ssl
_ timeout (11) -
ssl
_ timeout= (11) -
ssl
_ version (11) -
ssl
_ version= (11) - start (44)
- started? (11)
-
sub
_ type (11) -
to
_ s (11) - trace (11)
-
type
_ params (11) - unlock (11)
-
use
_ ssl= (11) -
use
_ ssl? (11) - value (11)
-
verify
_ callback (11) -
verify
_ callback= (11) -
verify
_ depth (11) -
verify
_ depth= (11) -
verify
_ mode (11) -
verify
_ mode= (11) -
version
_ 1 _ 1? (11) -
version
_ 1 _ 2 (11) -
version
_ 1 _ 2? (11) -
write
_ timeout (6) -
write
_ timeout= (6) - クラス/メソッドの定義 (11)
検索結果
先頭5件
- Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse - Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse - Net
:: HTTP # get2(path , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # get2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse - Net
:: HTTP # lock(path , body , initheader = nil) -> Net :: HTTPResponse
-
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (9106.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 (9106.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 # get2(path , header = nil) -> Net :: HTTPResponse (9106.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......とともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイ......# body is already read
# using block
http.request_get('/index.html') {|response|
p response['content-type']
response.read_body do |str| # read body now
print str
end
}
//}
get2 は時代遅れなので使わないでください。
@see Net::HTTP#get, Net::HTTPResponse#read_body... -
Net
:: HTTP # get2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (9106.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......とともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイ......# body is already read
# using block
http.request_get('/index.html') {|response|
p response['content-type']
response.read_body do |str| # read body now
print str
end
}
//}
get2 は時代遅れなので使わないでください。
@see Net::HTTP#get, Net::HTTPResponse#read_body... -
Net
:: HTTP # lock(path , body , initheader = nil) -> Net :: HTTPResponse (9106.0) -
サーバの path に LOCK リクエストを ヘッダを initheader, ボディを body として送ります。
...サーバの path に LOCK リクエストを
ヘッダを initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエストのボ......ディを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Lock... -
Net
:: HTTP # mkcol(path , body , initheader = nil) -> Net :: HTTPResponse (9106.0) -
サーバの path に MKCOL リクエストを ヘッダが initheader, ボディを body として送ります。
...サーバの path に MKCOL リクエストを
ヘッダが initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエストの......ボディを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Mkcol... -
Net
:: HTTP # move(path , body , initheader = nil) -> Net :: HTTPResponse (9106.0) -
サーバの path に MOVE リクエストを ヘッダが initheader, ボディを body として送ります。
...サーバの path に MOVE リクエストを
ヘッダが initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエストのボ......ディを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Move... -
Net
:: HTTP # options(path , initheader = nil) -> Net :: HTTPResponse (9106.0) -
サーバの path に OPTIONS リクエストを ヘッダが initheader として送り、 レスポンスを Net::HTTPResponse のオブジェクト で返します。
...ポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Options... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (9106.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...サーバ上の path にあるエンティティに対し文字列 data を
POST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与え.......rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') do |str|
f.write str
end
}
//}
@see Net::HTTP#request_post... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (9106.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...サーバ上の path にあるエンティティに対し文字列 data を
POST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与え.......rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') do |str|
f.write str
end
}
//}
@see Net::HTTP#request_post...