mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
32 lines
794 B
Plaintext
32 lines
794 B
Plaintext
module HTTPX
|
|
module Plugins
|
|
module DigestAuthentication
|
|
DigestError: singleton(Error)
|
|
|
|
interface _DigestOptions
|
|
def digest: () -> Digest?
|
|
end
|
|
|
|
def self.extra_options: (Options) -> (Options & _DigestOptions)
|
|
|
|
def self.load_dependencies: (*untyped) -> void
|
|
|
|
module InstanceMethods
|
|
def digest_authentication: (string user, string password) -> instance
|
|
end
|
|
|
|
class Digest
|
|
def generate_header: (Request, Response, ?bool?) -> String
|
|
|
|
private
|
|
|
|
def initialize: (string user, string password) -> untyped
|
|
def make_cnonce: () -> String
|
|
def next_nonce: () -> Integer
|
|
end
|
|
end
|
|
|
|
type sessionDigestAuthentication = sessionAuthentication & DigestAuthentication::InstanceMethods
|
|
end
|
|
end
|