module HTTPX::Plugins::ContentDigest

  1. lib/httpx/plugins/content_digest.rb

This plugin adds ‘Content-Digest` headers to requests and can validate these headers on responses

datatracker.ietf.org/doc/html/rfc9530

Methods

Public Class

  1. extra_options

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