Added headers to context

This commit is contained in:
Serdar Dogruyol 2015-10-30 17:06:25 +02:00
parent 5892d900ff
commit ffdaecace4
2 changed files with 17 additions and 0 deletions

View file

@ -9,6 +9,10 @@ class Kemal::Context
@content_type = "text/html"
end
def headers
request.headers
end
def set_content_type(content_type)
@content_type = content_type
end