Sha256: c7aa2666e2e6801a9331090d0729643ba682a89c42bb03ada7b636eb64490ec3
Contents?: true
Size: 370 Bytes
Versions: 12
Compression:
Stored size: 370 Bytes
Contents
class Epics::XMLSIG < Faraday::Middleware def initialize(app, options = {}) super(app) @client = options[:client] end def call(env) @signer = Epics::Signer.new(@client, env.request_body) @signer.digest! @signer.sign! env.request_body = @signer.doc.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML) @app.call(env) end end
Version data entries
12 entries across 12 versions & 1 rubygems