Module: HTTPX::Plugins::DigestAuthentication

Defined in:
lib/httpx/plugins/digest_authentication.rb

Overview

This plugin adds helper methods to implement HTTP Digest Auth (tools.ietf.org/html/rfc7616)

gitlab.com/honeyryderchuck/httpx/wikis/Authentication#authentication

Defined Under Namespace

Modules: InstanceMethods, OptionsMethods Classes: Digest

Constant Summary collapse

DigestError =
Class.new(Error)

Class Method Summary collapse

Class Method Details

.extra_options(options) ⇒ Object



18
19
20
# File 'lib/httpx/plugins/digest_authentication.rb', line 18

def extra_options(options)
  options.merge(max_concurrent_requests: 1)
end

.load_dependenciesObject



22
23
24
25
# File 'lib/httpx/plugins/digest_authentication.rb', line 22

def load_dependencies(*)
  require "securerandom"
  require "digest"
end