Sha256: 95d0a31116a3237fffb0ee27abf67dc6e4c8627928ed0d35224e6977063d45d4

Contents?: true

Size: 1.57 KB

Versions: 20

Compression:

Stored size: 1.57 KB

Contents

require 'pact/mock_service/request_handlers/interaction_post'
require 'pact/mock_service/request_handlers/interactions_put'
require 'pact/mock_service/request_handlers/index_get'
require 'pact/mock_service/request_handlers/interaction_delete'
require 'pact/mock_service/request_handlers/interaction_replay'
require 'pact/mock_service/request_handlers/log_get'
require 'pact/mock_service/request_handlers/options'
require 'pact/mock_service/request_handlers/missing_interactions_get'
require 'pact/mock_service/request_handlers/pact_post'
require 'pact/mock_service/request_handlers/session_delete'
require 'pact/mock_service/request_handlers/verification_get'
require 'pact/consumer/request'
require 'pact/support'

module Pact
  module MockService
    module RequestHandlers

      def self.new *args
        App.new(*args)
      end

      class App < ::Rack::Cascade
        def initialize name, logger, session, options
          super [
            Options.new(name, logger, options[:cors_enabled]),
            SessionDelete.new(name, logger, session),
            MissingInteractionsGet.new(name, logger, session),
            VerificationGet.new(name, logger, session),
            InteractionPost.new(name, logger, session),
            InteractionsPut.new(name, logger, session),
            InteractionDelete.new(name, logger, session),
            LogGet.new(name, logger),
            PactPost.new(name, logger, session),
            IndexGet.new(name, logger),
            InteractionReplay.new(name, logger, session, options[:cors_enabled])
          ]
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pact-mock_service-2.4.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-2.3.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-2.2.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-2.1.1.pre.alpha.2 lib/pact/mock_service/request_handlers.rb
pact-mock_service-2.1.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-2.0.1 lib/pact/mock_service/request_handlers.rb
pact-mock_service-2.0.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-1.2.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-1.1.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-1.0.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.12.1 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.12.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.11.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.10.2 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.10.1 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.10.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.9.0 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.8.2 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.8.1 lib/pact/mock_service/request_handlers.rb
pact-mock_service-0.8.0 lib/pact/mock_service/request_handlers.rb