Browse files

Add generic header() function

  • Loading branch information...
1 parent e14f75b commit 41d43bf01f088ad49b276eb381a4ace1b88329ea GlitchMr committed Sep 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Bailador.pm
View
4 lib/Bailador.pm
@@ -56,6 +56,10 @@ sub content_type(Str $type) is export {
$app.response.headers<Content-Type> = $type;
}
+sub header(Str $name, Cool $value) is export {
+ $app.response.headers{$name} = $value;
+}
+
sub status(Int $code) is export {
$app.response.code = $code;
}

0 comments on commit 41d43bf

Please sign in to comment.