Sha256: 6e8edc04274db5dfb7c5647624de98aa9e340aae817c51d979ea35fb4b336141

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

require 'pact/consumer/mock_service/rack_request_helper'
require 'pact/consumer/mock_service/mock_service_administration_endpoint'

module Pact
  module Consumer

    # Administration web requests (GET, DELETE, POST, PUT, etc.)
    class WebRequestAdministration < MockServiceAdministrationEndpoint

      def request_path
        raise NotImplementedError
      end

      def request_method
        raise NotImplementedError
      end

      def enable_cors?
        true
      end

      private

      def request_header_match? env
        headers_from(env)['X-Pact-Mock-Service']
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact-mock_service-0.2.3.pre.rc2 lib/pact/consumer/mock_service/web_request_administration.rb