るりまサーチ

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

別のキーワード

  1. net/http get
  2. http start
  3. http get
  4. net/http start
  5. net/http post

検索結果

<< 1 2 3 > >>

CGI::HtmlExtension#base(href = "") -> String (18141.0)

base 要素を生成します。

...
base
要素を生成します。

@param href 文字列を指定します。属性をハッシュで指定することもできます。

例:
base
("http://www.example.com/cgi")
# => "<BASE HREF=\"http://www.example.com/cgi\">"...

OpenURI::Meta#base_uri -> URI (6125.0)

リソースの実際の URI を URI オブジェクトとして返します。 リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

...します。
リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.base_uri
#=> #<URI::HTTP:0xb7043aa0 URL:http://www.ruby-lang.org/en/>
}
//}...
...ます。
リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

//emlist[例][ruby]{
require 'open-uri'
URL.open('http://www.ruby-lang.org/') {|f|
p f.base_uri
#=> #<URI::HTTP:0xb7043aa0 URL:http://www.ruby-lang.org/en/>
}
//}...

open-uri (94.0)

http/ftp に簡単にアクセスするためのクラスです。 Kernel.#open を再定義します。

...http/ftp に簡単にアクセスするためのクラスです。
Kernel.#open を再定義します。

=== 使用例

http
/ftp の URL を、普通のファイルのように開けます。

require 'open-uri'
open("http://www.ruby-lang.org/") {|f|
f.each_line {|line| p line}
}

開い...
...メタ情報を獲得する
メソッドが使えます。

require 'open-uri'
open("http://www.ruby-lang.org/en") {|f|
f.each_line {|line| p line}
p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
p f.content_type # "text/html"
p f.charset...
...ルドを指定できます。

require 'open-uri'
open("http://www.ruby-lang.org/en/",
"User-Agent" => "Ruby/#{RUBY_VERSION}",
"From" => "foo@bar.invalid",
"Referer" => "http://www.ruby-lang.org/") {|f|
...
}

http
_proxy や ftp_proxy などの環境変数は、デフォルト...
...http/ftp に簡単にアクセスするためのクラスです。

=== 使用例

http
/ftp の URL を、普通のファイルのように開けます。

require 'open-uri'
URI.open("http://www.ruby-lang.org/") {|f|
f.each_line {|line| p line}
}

開いたファイルオブジェクト...
...情報を獲得する
メソッドが使えます。

require 'open-uri'
URI.open("http://www.ruby-lang.org/en") {|f|
f.each_line {|line| p line}
p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
p f.content_type # "text/html"
p f.charset...
...ドを指定できます。

require 'open-uri'
URI.open("http://www.ruby-lang.org/en/",
"User-Agent" => "Ruby/#{RUBY_VERSION}",
"From" => "foo@bar.invalid",
"Referer" => "http://www.ruby-lang.org/") {|f|
...
}

http
_proxy や ftp_proxy などの環境変数は、デフォル...

NEWS for Ruby 2.5.0 (90.0)

NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...の文字列は捕捉されない例外をRubyが表示しているのと同じ方法でフォーマットされます。

* Dir
* Dir.glob :base というキーワード引数を追加しました 13056
* Dir.chdir (ブロックなしで呼び出した場合), Dir.open, Dir.new, Dir.mkdir...
...* Regexp
* Onigmo 6.1.3-669ac9997619954c298da971fcfacccf36909d05 に更新
* 非包含オペレータ(absence operator)をサポート https://github.com/k-takata/Onigmo/issues/82
* Support new 5 emoji-related Unicode character properties

* RubyVM::InstructionSequence
* Ru...
...意味します。
* ブランチカバレッジの結果はこのようになります:
//emlist{
{ (jump base) => { (jump target) => (counter) } }
//}
* jump base と jump target にはフォーマットがあります:
//emlist{
[type, unique-id, start lineno, start column...

NEWS for Ruby 2.0.0 (72.0)

NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...structionSequence#path,
RubyVM::InstructionSequence#absolute_path,
RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#base_label,
RubyVM::InstructionSequence#first_lineno to retrieve information from where
the instruction sequence was defined.
* スタ...
...い。

* Fixnum, Bignum, Float
* フリーズされました。

* Signal.trap
* 上を参照

* Onigmo をマージしました。
http
s://github.com/k-takata/Onigmo

* The :close_others option is true by default for system() and exec().
Also, the close-on-exec flag is set...
...添付ライブラリの更新 (優れたもののみ)

* cgi
* HTML5 用のタグメーカーを追加しました
* CGI#header は CGI#http_header に名前を変更しました。CGI#header は別名として残っています。
* HTML5 用のタグメーカーを呼び出すと CG...

絞り込み条件を変える

ruby 1.9 feature (72.0)

ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。

...)機能
* [platform]: 対応プラットフォームの追加

== 1.9.0

=== 2006-09-16

: Struct#inspect

=== 2006-09-14

: digest.rb
: Digest::Base.file

=== 2006-09-13

: Hash#compare_by_identity
: Hash#compare_by_identity?
: Hash#identical
: Hash#identical?

=== 2006-09-12

: Hash#compare_by_i...
...CPsocket
: SOCKSsocket
: TCPserver
: UDPsocket
: UNIXsocket
: UNIXserver

削除

=== 2006-06-11

: __callee__ [new]
: __method__ [new]

((<URL:http://www.dm4lab.to/~usa/ruby/d/200606a.html#id20060610_P1_7>))

: Symbol#to_proc

=== 2006-06-10

* 新機能
: BasicObject が導入されました...
...複数回挿入できるようになりました
: Math#log2 追加 ((<ruby-talk:191237>)) [new]
: Math#log にオプショナルな第2引数 base 追加 ((<ruby-talk:191308>)) [compat]
: Array#flatten, Array#flatten! がオプショナルな level 引数を受け取るようになりまし...

SecureRandom (58.0)

安全な乱数発生器のためのインターフェースを提供するモジュールです。 HTTP のセッションキーなどに適しています。

...安全な乱数発生器のためのインターフェースを提供するモジュールです。
HTTP
のセッションキーなどに適しています。

以下の乱数発生器をサポートしています。

* openssl
* /dev/urandom

上の安全な乱数発生器が使用できな...
...fc23"

# random base64 string.
require 'securerandom'
p SecureRandom.base64(10) #=> "EcmTPZwWRAozdA=="
p SecureRandom.base64(10) #=> "9b0nsevdwNuM/w=="
p SecureRandom.base64(10) #=> "KO1nIU+p9DKxGg=="
p SecureRandom.base64(11) #=> "l7XEiFja+8EKEtY="
p SecureRandom.base64(12) #=> "7kJSM...
.../MzBJI+75j8"
p SecureRandom.base64(13) #=> "vKLJ0tXBHqQOuIcSIg=="

# random binary string.
require 'securerandom'
p SecureRandom.random_bytes(10) #=> "\016\t{\370g\310pbr\301"
p SecureRandom.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337"...

NEWS for Ruby 3.0.0 (48.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...* Add :connect_timeout to TCPSocket.new 17187
* Net::HTTP
* Net::HTTP#verify_hostname= and Net::HTTP#verify_hostname have been added to skip hostname verification. 16555
* Net::HTTP.get, Net::HTTP.get_response, and Net::HTTP.get_print can take the request headers as a Hash in the sec...
...The following libraries are promoted to default gems from stdlib.
* English
* abbrev
* base64
* drb
* debug
* erb
* find
* net-ftp
* net-http
* net-imap
* net-protocol
* open-uri
* optparse
* pp
* prettyprint...
...erested in maintaining them, please comment on your plan to https://github.com/ruby/xmlrpc or https://github.com/ruby/net-telnet.
* SDBM has been removed from the Ruby standard library. 8446
* The issues of sdbm will be handled at https://github.com/ruby/sdbm
* WEBrick has been removed from...

NEWS for Ruby 2.3.0 (42.0)

NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...ek_result を追加。カバレッジツールを停止することなくカバレッジに関する情報を取得することができます。
http
s://bugs.ruby-lang.org/issues/10816

* Fiddle
* Fiddle::Function#call は GVL を解放するようになりました。
11607

*...
...BSD 2-clause "Simplified" License に変更されました。

* base64
* Base64.#urlsafe_encode64 に パディング文字("=")を抑制するために "padding" オプションが追加されました。
10740
* Base64.#urlsafe_decode64: パディングされていない入力だ...
...いない引数を削除しました。
http
s://github.com/ruby/ruby/pull/515

* matrix
* Vector#roundを追加。
http
s://github.com/ruby/ruby/pull/802

* webrick/utils
* 使用していない引数を削除しました。
http
s://github.com/ruby/ruby/pull/356

* Net...

manual page (24.0)

manual page foo(1)という記述はマニュアルページの参照を示します(Unixでの話)。

...NIX Specification: http://www.unix.org/what_is_unix/single_unix_specification.html
* JM Project: https://linuxjm.osdn.jp/
* jpman プロジェクト: http://www.jp.freebsd.org/man-jp/
* X Japanese Documentation Project: http://xjman.dsl.gr.jp/
* FreeBSD Hypertext Man Pages: https://www.freebsd.o...
...rg/cgi/man.cgi
* The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition: https://pubs.opengroup.org/onlinepubs/007904975/idx/index.html
などを参照してください(この他にも情報があれば教えてください)。...

絞り込み条件を変える

NEWS for Ruby 2.7.0 (18.0)

NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...2

JSON.parse(json, symbolize_names: true) in {name: "Alice", children: [{name: "Charlie", age: age}]}
#=> NoMatchingPatternError
//}

* 詳細は https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-ruby-2-dot-7 のスライドを参照してください。
* スライドは少し古...
...ヒープをCoW (copy-on-write)フレンドリーに
しようとします。 15626
* アルゴリズムの詳細と注意点は
http
s://bugs.ruby-lang.org/issues/15626
を参照してください。

* IO
* 新規メソッド
* BOMをチェックして外...
...rb:7:in `<main>': invalid option: --baa (OptionParser::InvalidOption)
Did you mean? baz
bar
//}

* Pathname
* Pathname.globがbaseキーワード引数を受け付けるために
Dir.globに3引数を委譲するようになりました。 14405

* Racc
* 上流の...
<< 1 2 3 > >>