36件ヒット
[1-36件を表示]
(0.015秒)
ライブラリ
- forwardable (12)
- openssl (12)
- rss (12)
キーワード
- ContentModel (12)
- Forwardable (12)
- OCSP (12)
検索結果
-
RSS
:: ContentModel (6001.0) -
-
Forwardable (13.0)
-
クラスに対し、メソッドの委譲機能を定義するモジュールです。
...nd して使います。Module#include でないところに注意して下さい。
例:
require 'forwardable'
class Foo
extend Forwardable
def_delegators("@out", "printf", "print")
def_delegators(:@in, :gets)
def_delegator(:@contents, :[], "content_at")
end
f = Foo.n......ew
f.printf ...
f.gets
f.content_at(1)... -
OpenSSL
:: OCSP (7.0) -
OCSP(Online Certificate Status Protocol)を取り扱うための モジュールです。OCSP は 2560 で定義されています。
...:OCSP::Request.new
req.add_certid(cid)
req.add_nonce
http = Net::HTTP.new('ocsp.example.com', 80)
httpres = http.post("/", req.to_der, 'content-type' => 'application/ocsp-request')
raise "HTTP error" if !httpres.kind_of?(Net::HTTPOK)
res = OpenSSL::OCSP::Response.new(httpres.body)...