lib/faastruby/server/runner_methods.rb in faastruby-0.5.9 vs lib/faastruby/server/runner_methods.rb in faastruby-0.5.10
- old
+ new
@@ -82,9 +82,13 @@
bin = true
end
respond_with(resp_body, status: status, headers: headers, binary: bin)
end
+ def render_nothing(status: 200, headers: {})
+ respond_with(nil, status: status, headers: headers, binary: false)
+ end
+
def redirect_to(function: nil, url: nil, status: 303)
headers = {"Location" => function || url}
respond_with(nil, status: status, headers: headers, binary: false)
end
\ No newline at end of file