Sha256: a913b1d947b601da9de538e610c20c38f1cf244e8c4486b0d19fd5a29e2efc0a

Contents?: true

Size: 284 Bytes

Versions: 2

Compression:

Stored size: 284 Bytes

Contents

module Rhinestone
  class App < Goliath::API
    def initialize
      @server =  Rhinestone.server
    end

    def response(env)
      response = @server.get("#{env['REQUEST_PATH']}?#{env['QUERY_STRING']}")

      [response.status, response.headers, response.body]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rhinestone-0.0.2 lib/rhinestone/app.rb
rhinestone-0.0.1 lib/rhinestone/app.rb