110件ヒット
[1-100件を表示]
(0.094秒)
種類
- インスタンスメソッド (55)
- 特異メソッド (55)
ライブラリ
-
net
/ http (110)
キーワード
- get (22)
-
is
_ version _ 1 _ 1? (11) -
is
_ version _ 1 _ 2? (11) - post (22)
-
ssl
_ version (11) -
version
_ 1 _ 1? (11) -
version
_ 1 _ 2 (11) -
version
_ 1 _ 2? (11)
検索結果
先頭5件
-
Net
:: HTTP . is _ version _ 1 _ 1? -> false (12315.0) -
何もしません。互換性のために残されており、常に false を返します。
...何もしません。互換性のために残されており、常に false を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_2?... -
Net
:: HTTP . is _ version _ 1 _ 2? -> true (12315.0) -
何もしません。互換性のために残されており、常に true を返します。
...何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_1?... -
Net
:: HTTP . version _ 1 _ 1? -> false (12315.0) -
何もしません。互換性のために残されており、常に false を返します。
...何もしません。互換性のために残されており、常に false を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_2?... -
Net
:: HTTP . version _ 1 _ 2? -> true (12315.0) -
何もしません。互換性のために残されており、常に true を返します。
...何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_1?... -
Net
:: HTTP . version _ 1 _ 2 -> true (12314.0) -
何もしません。互換性のために残されており、常に true を返します。
...何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_1?, Net::HTTP.version_1_2?... -
Net
:: HTTP # ssl _ version -> String | Symbol | nil (12308.0) -
利用するプロトコルの種類を返します。
...利用するプロトコルの種類を返します。
@see Net::HTTP#ssl_version=... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (261.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...OST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の HTTPResponse オブジェクトは有効な bo......dy を
持ちません。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
dest は時代遅れの引数です。利用しない......mlist[例][ruby]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.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=subje... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (261.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...OST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の HTTPResponse オブジェクトは有効な bo......dy を
持ちません。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。
dest は時代遅れの引数です。利用しない......mlist[例][ruby]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.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=subje... -
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (219.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を......ィ] となります。
//emlist[例][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',... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (219.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を......ィ] となります。
//emlist[例][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',...