るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.074秒)
トップページ > クエリ:l[x] > クエリ:FALSE[x] > クエリ:open_uri[x]

別のキーワード

  1. object false
  2. _builtin false
  3. rb_false
  4. false object
  5. false

ライブラリ

クラス

モジュール

検索結果

OpenURI.open_uri(name, mode = 'r', perm = nil, options = {}) -> StringIO (18232.0)

URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。

...します。ブロックの終了時に StringIO は close されます。nil を返します。

require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read

OpenURI.open_uri('http://www.example.com'){|sio| sio.read }

options には Hash を与...
...シンボル、
* :proxy
* :progress_proc
* :content_length_proc
* :http_basic_authentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_verify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」はプログレスバ...
...//proxy.example.com:8000/") のようなプロクシの URI オブジェクト。
true: Proxy を環境変数などから見つけようとする。使う環境変数は schema に応じて
http_proxy, https_proxy, ftp_proxy が使われる。
false
:...

OpenURI.open_uri(name, mode = 'r', perm = nil, options = {}) {|sio| ... } -> nil (18232.0)

URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。

...します。ブロックの終了時に StringIO は close されます。nil を返します。

require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read

OpenURI.open_uri('http://www.example.com'){|sio| sio.read }

options には Hash を与...
...シンボル、
* :proxy
* :progress_proc
* :content_length_proc
* :http_basic_authentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_verify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」はプログレスバ...
...//proxy.example.com:8000/") のようなプロクシの URI オブジェクト。
true: Proxy を環境変数などから見つけようとする。使う環境変数は schema に応じて
http_proxy, https_proxy, ftp_proxy が使われる。
false
:...

Gem::RemoteFetcher#open_uri_or_path(uri, last_modified = nil, head = false, depth = 0) -> StringIO | File (6302.0)

@param uri URI を指定します。

...@param uri URI を指定します。

@param last_modified 最終更新時刻を指定します。

@param head 真を指定するとヘッダ情報のみ取得します。

@param depth 現在のリダイレクト回数を指定します。

@raise Gem::RemoteFetcher::FetchError デフォルトで...