Sha256: 9a479a9b8600efe13ba258258c3dbd33c55431e55693ffb5ff8e2169dc50049a
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
# -*- encoding : utf-8 -*- require 'observer' module Pacto module Core class HTTPMiddleware include Logger include Observable def process(request, response) contracts = Pacto.contracts_for request Pacto.configuration.hook.process contracts, request, response changed begin notify_observers request, response rescue StandardError => e logger.error Pacto::Errors.formatted_trace(e) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc3 | lib/pacto/core/http_middleware.rb |
pacto-0.4.0.rc2 | lib/pacto/core/http_middleware.rb |