るりまサーチ

最速Rubyリファレンスマニュアル検索!
1050件ヒット [1-100件を表示] (0.048秒)
トップページ > クエリ:HTTP[x] > ライブラリ:ビルトイン[x]

別のキーワード

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

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Data.define(*args) -> Class (20.0)

Data クラスに新しいサブクラスを作って、それを返します。

...by]{
class HTTPFetcher
Response = Data.define(:body)
NotFound = Data.define

def get(url)
# ダミーの実装
if url == "http://example.com/"
Response.new(body: "Current time is #{Time.now}")
else
NotFound.new
end
end
end

def fetch(url)
fetcher = HTTPFetcher.n...
...ew
case fetcher.get(url)
in HTTPFetcher::Response(body)
body
in HTTPFetcher::NotFound
:NotFound
end
end

p fetch("http://example.com/") # => "Current time is 2023-01-10 10:00:53 +0900"
p fetch("http://example.com/404") # => :NotFound
//}

@param args 値オブジェクトのク...

Data.define(*args) {|subclass| block } -> Class (20.0)

Data クラスに新しいサブクラスを作って、それを返します。

...by]{
class HTTPFetcher
Response = Data.define(:body)
NotFound = Data.define

def get(url)
# ダミーの実装
if url == "http://example.com/"
Response.new(body: "Current time is #{Time.now}")
else
NotFound.new
end
end
end

def fetch(url)
fetcher = HTTPFetcher.n...
...ew
case fetcher.get(url)
in HTTPFetcher::Response(body)
body
in HTTPFetcher::NotFound
:NotFound
end
end

p fetch("http://example.com/") # => "Current time is 2023-01-10 10:00:53 +0900"
p fetch("http://example.com/404") # => :NotFound
//}

@param args 値オブジェクトのク...

Encoding::CP936 -> Encoding (20.0)

GBK エンコーディング

...GBK エンコーディング

中国で用いられる簡体字中国語のエンコーディングです。

@see http://www.iana.org/assignments/character-sets,
http
://www.iana.org/assignments/charset-reg/GBK,
http
://www.microsoft.com/globaldev/reference/dbcs/936.mspx...

Encoding::CP951 -> Encoding (20.0)

CP951 エンコーディングです。

...Windows で使われる Big5-HKSCS の亜種です。

@see http://www.microsoft.com/hk/hkscs/default.aspx,
http
://www.microsoft.com/downloads/en/details.aspx?FamilyID=0e6f5ac8-7baa-4571-b8e8-78b3b776afd7&DisplayLang=en,
http
://blogs.msdn.com/b/shawnste/archive/2007/03/12/cp-951-hkscs.as...

Encoding::EUCJP_MS -> Encoding (20.0)

eucJP-ms、Unix 系で用いられる、日本語 EUC 亜種です。

...

EUC-JPに加え、Windowsの機種依存文字とユーザ定義文字を扱うことができます。
@see http://www2d.biglobe.ne.jp/~msyk/charcode/cp932/eucJP-ms.html,
http
://legacy-encoding.osdn.jp/wiki/index.php?eucJP-ms,
http
://blog.livedoor.jp/numa2666/archives/50980727.html...

絞り込み条件を変える

Encoding::EUC_JP_MS -> Encoding (20.0)

eucJP-ms、Unix 系で用いられる、日本語 EUC 亜種です。

...

EUC-JPに加え、Windowsの機種依存文字とユーザ定義文字を扱うことができます。
@see http://www2d.biglobe.ne.jp/~msyk/charcode/cp932/eucJP-ms.html,
http
://legacy-encoding.osdn.jp/wiki/index.php?eucJP-ms,
http
://blog.livedoor.jp/numa2666/archives/50980727.html...

Encoding::EucJP_ms -> Encoding (20.0)

eucJP-ms、Unix 系で用いられる、日本語 EUC 亜種です。

...

EUC-JPに加え、Windowsの機種依存文字とユーザ定義文字を扱うことができます。
@see http://www2d.biglobe.ne.jp/~msyk/charcode/cp932/eucJP-ms.html,
http
://legacy-encoding.osdn.jp/wiki/index.php?eucJP-ms,
http
://blog.livedoor.jp/numa2666/archives/50980727.html...

Encoding::GBK -> Encoding (20.0)

GBK エンコーディング

...GBK エンコーディング

中国で用いられる簡体字中国語のエンコーディングです。

@see http://www.iana.org/assignments/character-sets,
http
://www.iana.org/assignments/charset-reg/GBK,
http
://www.microsoft.com/globaldev/reference/dbcs/936.mspx...

GC (20.0)

GC は Ruby インタプリタの「ゴミ集め(Garbage Collection)」を制御 するモジュールです。

...ないことも多い。そういう部分も含め計測する。
* newrelicのような高度なツールを使うことも考慮する
* http://tmm1.net/ruby21-rgengc/ には
RUBY_GC_HEAP_INIT_SLOTS や RUBY_GC_HEAP_FREE_SLOTS
のチューニングに関する簡単な指針が書...
...放はこの単位で行われる。
この「ページ」はOSのメモリ管理用語であるページとは異なる概念であることに注意。


==== 参考資料

* http://www.atdot.net/~ko1/activities/2014_rubyconf_ph_pub.pdf
* http://tmm1.net/ruby21-rgengc/


@see ObjectSpace...

Encoding::BIG5_HKSCS -> Encoding (14.0)

Big5-HKSCS エンコーディングです。

...Big5-HKSCS エンコーディングです。

香港で使われている Big5 の亜種です。

@see http://www.iana.org/assignments/charset-reg/Big5-HKSCS,
http
://www.ogcio.gov.hk/en/business/tech_promotion/ccli/hkscs/...

絞り込み条件を変える

<< 1 2 3 ... > >>