class Namira::Env

The calling environment for the request

Attributes

body[RW]
config[RW]
headers[RW]
method[RW]
redirect_count[RW]
response[RW]
timing[RW]
uri[RW]

Public Class Methods

new(env) click to toggle source
# File lib/namira/env.rb, line 15
def initialize(env)
  @uri     = Addressable::URI.parse(env[:uri].to_s)
  @body    = env[:body]
  @method  = env[:method]
  @headers = Hash(env[:headers])
  @config  = Hash(env[:config])
  @redirect_count = 0
  @response = nil
  @timing = nil
end