Sha256: e3ac7c4db07c72ef5647b7e91bd06a70725ece888b3a024da16fa2350d03a0e4

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 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

      def content_type
        @content_type ||= @env['CONTENT_TYPE']
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
esplanade-1.5.0 lib/esplanade/request/raw.rb
esplanade-1.4.0 lib/esplanade/request/raw.rb
esplanade-1.3.0 lib/esplanade/request/raw.rb