Sha256: d003cbfe28d6a7fe612c8a953aa6b3611999335c4362e7b6bdcb7a22df6091c9

Contents?: true

Size: 677 Bytes

Versions: 11

Compression:

Stored size: 677 Bytes

Contents

require "alephant/logger"

require "alephant/broker/request"
require "alephant/broker/response"
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

11 entries across 11 versions & 1 rubygems

Version Path
alephant-broker-3.19.1 lib/alephant/broker/request/handler.rb
alephant-broker-3.19.0 lib/alephant/broker/request/handler.rb
alephant-broker-3.18.0 lib/alephant/broker/request/handler.rb
alephant-broker-3.17.0 lib/alephant/broker/request/handler.rb
alephant-broker-3.16.2 lib/alephant/broker/request/handler.rb
alephant-broker-3.16.1 lib/alephant/broker/request/handler.rb
alephant-broker-3.16.0 lib/alephant/broker/request/handler.rb
alephant-broker-3.15.2 lib/alephant/broker/request/handler.rb
alephant-broker-3.15.1 lib/alephant/broker/request/handler.rb
alephant-broker-3.15.0 lib/alephant/broker/request/handler.rb
alephant-broker-3.14.0 lib/alephant/broker/request/handler.rb