Sha256: 0012bd227c97598c2758583a296d49fa0f1678f101dc5a2899be1f38b25f110c
Contents?: true
Size: 558 Bytes
Versions: 6
Compression:
Stored size: 558 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 raw_path @raw_path ||= "#{@env['PATH_INFO']}/#{@env['QUERY_STRING']}" end def body @body ||= Body.new(self, @env) end def content_type @content_type ||= @env['CONTENT_TYPE'].to_s.split(';').first end end end end
Version data entries
6 entries across 6 versions & 1 rubygems