Module: HTTPX::Plugins::ContentDigest
- Defined in:
- lib/httpx/plugins/content_digest.rb
Overview
This plugin adds ‘Content-Digest` headers to requests and can validate these headers on responses
Defined Under Namespace
Modules: InstanceMethods, OptionsMethods, ResponseBodyMethods Classes: Error, InvalidContentDigestError, MissingContentDigestError, ValidationError
Constant Summary collapse
- SUPPORTED_ALGORITHMS =
{ "sha-256" => OpenSSL::Digest::SHA256, "sha-512" => OpenSSL::Digest::SHA512, }.freeze
Class Method Summary collapse
Class Method Details
.extra_options(options) ⇒ Object
33 34 35 |
# File 'lib/httpx/plugins/content_digest.rb', line 33 def () .merge(encode_content_digest: true, validate_content_digest: false, content_digest_algorithm: "sha-256") end |