Sha256: a3bbca3eac2ddad1b19b6637f5e0158d90bcf9e102d8d4abc7991987711f16d7

Contents?: true

Size: 645 Bytes

Versions: 48

Compression:

Stored size: 645 Bytes

Contents

require 'pact/mock_service/request_handlers/base_administration_request_handler'

module Pact
  module MockService
    module RequestHandlers

      class SessionDelete < BaseAdministrationRequestHandler

        attr_accessor :session

        def initialize name, logger, session
          super name, logger
          @session = session
        end

        def request_path
          '/session'
        end

        def request_method
          'DELETE'
        end

        def respond env
          session.clear_all
          logger.info "Cleared session"
          text_response 'Cleared session'
        end
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
pact-mock_service-3.2.1 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-3.2.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-3.1.1 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-3.1.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-3.0.1 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-3.0.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.12.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.11.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.10.1 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.10.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.9.8 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.9.3 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.9.2 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.9.1 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.9.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.8.1 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.8.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.7.1 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.7.0 lib/pact/mock_service/request_handlers/session_delete.rb
pact-mock_service-2.6.4 lib/pact/mock_service/request_handlers/session_delete.rb