Cache Context#params result

This commit is contained in:
TSUYUSATO Kitsune 2016-02-10 02:11:05 +09:00
parent 70ef8a7718
commit 0f86e59db6

View file

@ -2,10 +2,8 @@
# information such as params, content_type e.g
class HTTP::Server
class Context
getter params
def params
Kemal::ParamParser.new(@route, @request).parse
@params ||= Kemal::ParamParser.new(@route, @request).parse
end
def redirect(url, status_code = 302)