summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpauth.rbs
blob: 90f29777f609d8bcf0fad86b7919033a05bea56e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module WEBrick
  module HTTPAuth
    interface _Callable
      def call: (String user, String pass) -> bool
    end

    def self?._basic_auth: (HTTPRequest req, HTTPResponse res, String realm, String req_field, String res_field, HTTPStatus::Error err_type, _Callable block) -> void

    def self?.basic_auth: (HTTPRequest req, HTTPResponse res, String realm) { (String user, String pass) -> bool } -> void

    def self?.proxy_basic_auth: (HTTPRequest req, HTTPResponse res, String realm) { (String user, String pass) -> bool } -> void
  end
end