るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.012秒)
トップページ > クエリ:port[x] > クエリ:BasicAuth[x]

別のキーワード

  1. uri default_port
  2. socket iff_team_port
  3. generic default_port
  4. socket iff_bridge_port
  5. socket iff_macvlan_port

ライブラリ

検索結果

WEBrick::HTTPAuth::BasicAuth (18012.0)

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

...v = WEBrick::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('...