るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
13件ヒット [1-13件を表示] (0.028秒)

別のキーワード

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

検索結果

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

絞り込み条件を変える

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

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

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

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

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

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

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

@see Net::HTTP#ssl_version=

Net::HTTPResponse#http_version -> String (18328.0)

サーバがサポートしている HTTP のバージョンを文字列で返します。

...サーバがサポートしている HTTP のバージョンを文字列で返します。

//emlist[例][ruby]{
require 'net/http'

uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}...

Net::HTTPVersionNotSupported (18055.0)

HTTP レスポンス 505 (HTTP Version not supported) を表現するクラスです。

HTTP レスポンス 505 (HTTP Version not supported) を表現するクラスです。

詳しくは 7231 Section 6.6.6 を見てください。

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

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

...、返り値が [レスポンスオブジェクト, そのボディ] となります。

//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'...

絞り込み条件を変える

Net::HTTP#get(path, header = nil, dest = nil) {|body_segment| .... } -> Net::HTTPResponse (61.0)

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

...、返り値が [レスポンスオブジェクト, そのボディ] となります。

//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'...

Net::HTTP#post(path, data, header = nil, dest = nil) -> Net::HTTPResponse (43.0)

サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。

...例外が発生します。
また、返り値が [レスポンスオブジェクト, そのボディ] となります。

//emlist[例][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...

Net::HTTP#post(path, data, header = nil, dest = nil) {|body_segment| .... } -> Net::HTTPResponse (43.0)

サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。

...例外が発生します。
また、返り値が [レスポンスオブジェクト, そのボディ] となります。

//emlist[例][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...