Sha256: 64dfb9026e12f6b7474a152084f0d8ae155cd607f75e38e2d6f118c928dddbb7

Contents?: true

Size: 763 Bytes

Versions: 6

Compression:

Stored size: 763 Bytes

Contents

require 'alephant/logger'

require 'alephant/broker/request'
require 'alephant/broker/response'
require 'alephant/broker/request/factory'
require 'alephant/broker/response/factory'
require 'alephant/broker/errors/content_not_found'

module Alephant
  module Broker
    module Request
      class Handler
        extend Logger

        def self.request_for(load_strategy, request_env)
          Request::Factory.request_for(load_strategy, request_env)
        end

        def self.response_for(request, request_env)
          Response::Factory.response_for(request, request_env)
        end

        def self.process(load_strategy, request_env)
          response_for(request_for(load_strategy, request_env), request_env)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alephant-broker-3.13.0 lib/alephant/broker/request/handler.rb
alephant-broker-3.12.0 lib/alephant/broker/request/handler.rb
alephant-broker-3.11.0 lib/alephant/broker/request/handler.rb
alephant-broker-3.10.2 lib/alephant/broker/request/handler.rb
alephant-broker-3.10.1 lib/alephant/broker/request/handler.rb
alephant-broker-3.10.0 lib/alephant/broker/request/handler.rb