Sha256: 76b743ef3b35bc8a3746fa792d5fdf8dce71b1a88c4a392ae1440d5313f03d81

Contents?: true

Size: 356 Bytes

Versions: 7

Compression:

Stored size: 356 Bytes

Contents

require 'esplanade/request/raw/body'

module Esplanade
  class Request
    class Raw
      def initialize(env)
        @env = env
      end

      def method
        @method ||= @env['REQUEST_METHOD']
      end

      def path
        @path ||= @env['PATH_INFO']
      end

      def body
        @body ||= Body.new(self, @env)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
esplanade-1.2.1 lib/esplanade/request/raw.rb
esplanade-1.2.0 lib/esplanade/request/raw.rb
esplanade-1.1.2 lib/esplanade/request/raw.rb
esplanade-1.1.1 lib/esplanade/request/raw.rb
esplanade-1.1.0 lib/esplanade/request/raw.rb
esplanade-1.0.1 lib/esplanade/request/raw.rb
esplanade-1.0.0 lib/esplanade/request/raw.rb