mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-16 00:01:48 -04:00
25 lines
539 B
Plaintext
25 lines
539 B
Plaintext
module HTTPX
|
|
module Plugins
|
|
module Authentication
|
|
class Digest
|
|
@user: String
|
|
@password: String
|
|
|
|
def can_authenticate?: (String? authenticate) -> boolish
|
|
|
|
def authenticate: (Request request, String authenticate) -> String
|
|
|
|
private
|
|
|
|
def generate_header: (String meth, String uri, String authenticate) -> String
|
|
|
|
def initialize: (string user, string password) -> void
|
|
|
|
def make_cnonce: () -> String
|
|
|
|
def next_nonce: () -> Integer
|
|
end
|
|
end
|
|
end
|
|
end
|