module HTTPX::Plugins::DigestAuthentication

  1. lib/httpx/plugins/digest_authentication.rb

Methods

Public Class

  1. extra_options
  2. load_dependencies

Constants

DigestError = Class.new(Error)  

Public Class methods

extra_options (options)
[show source]
   # File lib/httpx/plugins/digest_authentication.rb
13 def self.extra_options(options)
14   Class.new(options.class) do
15     def_option(:digest) do |digest|
16       raise Error, ":digest must be a Digest" unless digest.is_a?(Digest)
17 
18       digest
19     end
20   end.new(options)
21 end
load_dependencies (*)
[show source]
   # File lib/httpx/plugins/digest_authentication.rb
23 def self.load_dependencies(*)
24   require "securerandom"
25   require "digest"
26 end