るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.090秒)
トップページ > クエリ:Proc.new[x] > クエリ:NEWS for Ruby 2.2.0[x] > クエリ:new[x] > クエリ:formatter[x] > ライブラリ:webrick/httpauth/basicauth[x]

別のキーワード

  1. rexml/parsers/sax2parser listen
  2. sax2parser listen
  3. argf.class lines
  4. argf.class each
  5. open3 popen2e

検索結果

WEBrick::HTTPAuth::BasicAuth (26.0)

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

...::HTTPServer.new({ :BindAddress => '127.0.0.1', :Port => 10080})

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

authenticator = WEBrick::HTTPAuth::BasicAuth.new(:UserDB => htpd, :Realm => realm)
srv.mount_proc('/basic_auth...