るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.023秒)
トップページ > ライブラリ:open-uri[x] > クエリ:on[x] > クエリ:argumenterror[x]

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. socket udp_server_loop_on
  5. thread abort_on_exception

モジュール

検索結果

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

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

...'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
* :cont...
...thentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_verify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。

require 'open-uri'
sio =...
...:proxy_http_basic_authentication を同時に指定すると
ArgumentError
が発生します。

使い方:
//emlist{
:proxy_http_basic_authentication =>
["http://proxy.example.com:8000/", "proxy-user", "proxy-password"]
:proxy_http_basic_authentication =>
[URI.parse("http://prox...

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

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

...'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
* :cont...
...thentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_verify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。

require 'open-uri'
sio =...
...:proxy_http_basic_authentication を同時に指定すると
ArgumentError
が発生します。

使い方:
//emlist{
:proxy_http_basic_authentication =>
["http://proxy.example.com:8000/", "proxy-user", "proxy-password"]
:proxy_http_basic_authentication =>
[URI.parse("http://prox...