def to_env
      rack_input = normalize_body(@request.body)

      env = HttpMonkey::Client::Environment.new(DEFAULT_ENV)
      env.uri = @request.url

      env.update({
        # request info
        'REQUEST_METHOD'  => @method.to_s.upcase,

        'rack.input'      => rack_input,
        'CONTENT_LENGTH'  => rack_input.length.to_s,

        # custom info
        'http_monkey.request' => [@method, @request, @client],
        'http_monkey.storage' => @client.storage
      })
      env.add_http_header(@request.headers)
      env
    end
def to_env
      rack_input = normalize_body(@request.body)

      env = HttpMonkey::Client::Environment.new(DEFAULT_ENV)
      env.uri = @request.url

      env.update({
        # request info
        'REQUEST_METHOD'  => @method.to_s.upcase,

        'rack.input'      => rack_input,
        'CONTENT_LENGTH'  => rack_input.length.to_s,

        # custom info
        'http_monkey.request' => [@method, @request, @client],
        'http_monkey.storage' => @client.storage
      })
      env.add_http_header(@request.headers)
      env
    end
Returns a instance of HttpMonkey::Client::Environment with
 rack like headers.