別のキーワード
種類
- インスタンスメソッド (492)
- 文書 (36)
- ライブラリ (24)
- 特異メソッド (24)
ライブラリ
-
net
/ http (300) -
rubygems
/ remote _ fetcher (12) -
webrick
/ cgi (12) -
webrick
/ httpservlet / abstract (84) -
webrick
/ httpservlet / cgihandler (24) -
webrick
/ httpservlet / erbhandler (24) -
webrick
/ httpservlet / filehandler (36) -
webrick
/ httpservlet / prochandler (24)
クラス
-
Gem
:: RemoteFetcher (12) -
Net
:: HTTP (180) -
Net
:: HTTPResponse (108) -
WEBrick
:: CGI (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (84) -
WEBrick
:: HTTPServlet :: CGIHandler (24) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (24) -
WEBrick
:: HTTPServlet :: ERBHandler (24) -
WEBrick
:: HTTPServlet :: FileHandler (12) -
WEBrick
:: HTTPServlet :: ProcHandler (24)
モジュール
-
Net
:: HTTPExceptions (12)
キーワード
- body (12)
- code (12)
-
do
_ DELETE (12) -
do
_ GET (72) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (48) -
do
_ PUT (12) - entity (12)
- get2 (24)
-
get
_ response (24) - head2 (24)
-
http
_ version (12) -
make
_ partial _ content (12) - msg (12)
-
net
/ http (12) -
read
_ body (24) - request (36)
-
request
_ get (24) -
request
_ head (24) - response (12)
-
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
send
_ request (12) - service (24)
- value (12)
-
webrick
/ cgi (12)
検索結果
先頭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 # request _ get(path , header = nil) -> Net :: HTTPResponse
-
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (18256.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......だされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を指......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) do |str|
f.writ... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (18256.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......だされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を指......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) do |str|
f.writ... -
Net
:: HTTP # get2(path , header = nil) -> Net :: HTTPResponse (6260.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......もに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに......nse = 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 response['content-type']
response.read_body do |str| # read body now
print str
end
}
//}
get2 は時代遅れ... -
Net
:: HTTP # get2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (6260.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......もに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに......nse = 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 response['content-type']
response.read_body do |str| # read body now
print str
end
}
//}
get2 は時代遅れ... -
Net
:: HTTP # request _ get(path , header = nil) -> Net :: HTTPResponse (6260.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......もに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに......nse = 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 response['content-type']
response.read_body do |str| # read body now
print str
end
}
//}
get2 は時代遅れ... -
Net
:: HTTP # request _ get(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (6260.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......もに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに......nse = 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 response['content-type']
response.read_body do |str| # read body now
print str
end
}
//}
get2 は時代遅れ... -
Net
:: HTTP . get _ response(host , path = nil , port = nil) -> Net :: HTTPResponse (6242.0) -
指定した対象に GET リクエストを送り、そのレスポンスを Net::HTTPResponse として返します。
...指定した対象に GET リクエストを送り、そのレスポンスを
Net::HTTPResponse として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。......@param host 接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get... -
Net
:: HTTP . get _ response(uri) -> Net :: HTTPResponse (6242.0) -
指定した対象に GET リクエストを送り、そのレスポンスを Net::HTTPResponse として返します。
...指定した対象に GET リクエストを送り、そのレスポンスを
Net::HTTPResponse として返します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。......@param host 接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get... -
WEBrick
:: HTTPServlet :: DefaultFileHandler # do _ GET(request , response) -> () (6129.0) -
GET リクエストを処理します。
...
GET リクエストを処理します。
@param request クライアントからのリクエストを表す WEBrick::HTTPRequest オブジェクトです。
@param response クライアントへのレスポンスを表す WEBrick::HTTPResponse オブジェクトです。
@raise WEBrick::HTTPStat......us::NotModified 自身に関連付けられたファイルが変更されていない場合に発生します。
@raise WEBrick::HTTPStatus::PartialContent 部分的 GET リクエストを処理した場合に発生します。...