別のキーワード
種類
- インスタンスメソッド (6)
- 特異メソッド (5)
クラス
-
Net
:: HTTP (8) -
Net
:: HTTPGenericRequest (1) -
Net
:: HTTPResponse (1)
モジュール
キーワード
-
body
_ stream (1) -
http
_ version (1) -
is
_ version _ 1 _ 1? (1) -
is
_ version _ 1 _ 2? (1) - response (1)
-
set
_ debug _ output (1) -
ssl
_ version (1) -
version
_ 1 _ 1? (1) -
version
_ 1 _ 2 (1) -
version
_ 1 _ 2? (1)
検索結果
先頭5件
-
Net
:: HTTP # options(path , initheader = nil) -> Net :: HTTPResponse (18907.0) -
サーバの path に OPTIONS リクエストを ヘッダが initheader として送り、 レスポンスを Net::HTTPResponse のオブジェクト で返します。
サーバの path に OPTIONS リクエストを
ヘッダが initheader として送り、
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Options -
Net
:: HTTP # ssl _ version -> String | Symbol | nil (18907.0) -
利用するプロトコルの種類を返します。
利用するプロトコルの種類を返します。
@see Net::HTTP#ssl_version= -
Net
:: HTTP . is _ version _ 1 _ 1? -> false (18907.0) -
何もしません。互換性のために残されており、常に false を返します。
何もしません。互換性のために残されており、常に false を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_2? -
Net
:: HTTP . is _ version _ 1 _ 2? -> true (18907.0) -
何もしません。互換性のために残されており、常に true を返します。
何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_1? -
Net
:: HTTP . version _ 1 _ 1? -> false (18907.0) -
何もしません。互換性のために残されており、常に false を返します。
何もしません。互換性のために残されており、常に false を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_2? -
Net
:: HTTP . version _ 1 _ 2 -> true (18907.0) -
何もしません。互換性のために残されており、常に true を返します。
何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_1?, Net::HTTP.version_1_2? -
Net
:: HTTP . version _ 1 _ 2? -> true (18907.0) -
何もしません。互換性のために残されており、常に true を返します。
何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_1? -
Net
:: HTTPResponse # http _ version -> String (18907.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
:: HTTPExceptions # response -> Net :: HTTPResponse (9625.0) -
例外の原因となったレスポンスオブジェクトを返します。
...例外の原因となったレスポンスオブジェクトを返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/invalid.html"
response = Net::HTTP.get_response(URI.parse(uri))
begin
response.value
rescue => e
e.response # => #<Net::HTTPNotFound 404 Not Fou... -
Net
:: HTTP # set _ debug _ output(io) -> () (946.0) -
デバッグ出力の出力先を指定します。 このメソッドは深刻なセキュリティホールの原因 になるため、デバッグ以外では決して使わないでください。
デバッグ出力の出力先を指定します。
このメソッドは深刻なセキュリティホールの原因
になるため、デバッグ以外では決して使わないでください。
io に nil を指定するとデバッグ出力を止めます。
@param io 出力先を指定します。このオブジェクトは
メソッド << を持っている必要があります。
//emlist[例][ruby]{
http.set_debug_output($stderr)
//} -
Net
:: HTTPGenericRequest # body _ stream -> object (673.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...。
@param f エンティティボディのデータを得るストリームオブジェクトを与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') do |f|
# 大...