るりまサーチ (Ruby 2.1.0)

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

別のキーワード

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

ライブラリ

検索結果

WEBrick::HTTPAuth::BasicAuth (63103.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 =...