Sha256: f1f256f7d956afdcb1fb918970c003e11c028a26feb1b2b2984f1d64f98d01a7

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

module RapidRunty
  # Main framework Application class. Entry point for all requests.
  class Application
    ##
    # Returns a rack compatible response.
    #
    # @return [status, {headers}, [response]] array
    def call(env)
      @req = Rack::Request.new(env)
      path = @req.path_info
      return [500, {}, []] if path == "/favicon.ico"
      [200, { "Content-Type" => "text/html" }, ["Hello"]]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapid_runty-0.1.0 lib/rapid_runty/application.rb