Method: Ocular::Inputs::HTTP::Input::WebRunContext#exec_wrapper

Defined in:
lib/ocular/inputs/http_input.rb

#exec_wrapper(res) ⇒ Object



81
82
83
84
85
86
87
88
89
90
91
# File 'lib/ocular/inputs/http_input.rb', line 81

def exec_wrapper(res)
    if Fixnum === res
        res = [res, @headers, nil]
    end

    if String === res
        res = [200, @headers, res]
    end

    return res
end