るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.024秒)
トップページ > クエリ:start[x] > バージョン:2.3.0[x] > クエリ:authenticate[x] > 種類:クラス[x]

別のキーワード

  1. net/smtp start
  2. smtp start
  3. http start
  4. net/http start
  5. net/pop start

ライブラリ

検索結果

WEBrick::HTTPAuth::BasicAuth (40.0)

HTTP の Basic 認証のためのクラスです。

HTTP の Basic 認証のためのクラスです。



require 'webrick'
realm = "WEBrick's realm"
srv = WEBrick::HTTPServer.new({ :BindAddress => '127.0.0.1', :Port => 10080})

htpd = WEBrick::HTTPAuth::Htpasswd.new('dot.htpasswd')
htpd.set_passwd(nil, 'username', 'supersecretpass')

authenticator =...