This plugin adds ‘Content-Digest` headers to requests and can validate these headers on responses
Classes and Modules
- HTTPX::Plugins::ContentDigest::InstanceMethods
- HTTPX::Plugins::ContentDigest::OptionsMethods
- HTTPX::Plugins::ContentDigest::ResponseBodyMethods
- HTTPX::Plugins::ContentDigest::Error
- HTTPX::Plugins::ContentDigest::InvalidContentDigestError
- HTTPX::Plugins::ContentDigest::MissingContentDigestError
- HTTPX::Plugins::ContentDigest::ValidationError
Constants
SUPPORTED_ALGORITHMS | = | { "sha-256" => OpenSSL::Digest::SHA256, "sha-512" => OpenSSL::Digest::SHA512, }.freeze |
Public Class methods
extra_options(options)
[show source]
# File lib/httpx/plugins/content_digest.rb 33 def extra_options(options) 34 options.merge(encode_content_digest: true, validate_content_digest: false, content_digest_algorithm: "sha-256") 35 end