るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.029秒)
トップページ > バージョン:2.3.0[x] > クエリ:version[x] > クラス:Net::HTTP[x]

別のキーワード

  1. openssl version
  2. rss version
  3. rss version=
  4. rss rss_version
  5. zlib zlib_version

ライブラリ

検索結果

Net::HTTP.is_version_1_1? -> false (18346.0)

何もしません。互換性のために残されており、常に false を返します。

...何もしません。互換性のために残されており、常に false を返します。

@see Net::HTTP.version_1_2, Net::HTTP.version_1_2?...

Net::HTTP.is_version_1_2? -> true (18346.0)

何もしません。互換性のために残されており、常に true を返します。

...何もしません。互換性のために残されており、常に true を返します。

@see Net::HTTP.version_1_2, Net::HTTP.version_1_1?...

Net::HTTP.version_1_1? -> false (18346.0)

何もしません。互換性のために残されており、常に false を返します。

...何もしません。互換性のために残されており、常に false を返します。

@see Net::HTTP.version_1_2, Net::HTTP.version_1_2?...

Net::HTTP.version_1_2? -> true (18346.0)

何もしません。互換性のために残されており、常に true を返します。

...何もしません。互換性のために残されており、常に true を返します。

@see Net::HTTP.version_1_2, Net::HTTP.version_1_1?...

Net::HTTP#ssl_version=(ver) (18343.0)

利用するプロトコルの種類を指定します。

...利用するプロトコルの種類を指定します。

OpenSSL::SSL::SSLContext.new で指定できるものと同じです。

@param ver 利用するプロトコルの種類(文字列 or シンボル)
@see Net::HTTP#ssl_version, OpenSSL::SSL::SSLContext#ssl_version=...

絞り込み条件を変える

Net::HTTP.version_1_2 -> true (18343.0)

何もしません。互換性のために残されており、常に true を返します。

...何もしません。互換性のために残されており、常に true を返します。

@see Net::HTTP.version_1_1?, Net::HTTP.version_1_2?...

Net::HTTP#ssl_version -> String | Symbol | nil (18325.0)

利用するプロトコルの種類を返します。

...利用するプロトコルの種類を返します。

@see Net::HTTP#ssl_version=...

Net::HTTP#get(path, header = nil, dest = nil) -> Net::HTTPResponse (58.0)

サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。

...サーバ上の path にあるエンティティを取得し、
Net::HTTP
Response のインスタンスとして返します。

header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という...
...呼びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTP
Response オブジェクトは有効な 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 (58.0)

サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。

...サーバ上の path にあるエンティティを取得し、
Net::HTTP
Response のインスタンスとして返します。

header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という...
...呼びだされたときは
エンティティボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTP
Response オブジェクトは有効な 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#post(path, data, header = nil, dest = nil) -> Net::HTTPResponse (40.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 (40.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...