Permalink
Browse files

Merge pull request #2 from GlitchMr/location

Add generic header() function
  • Loading branch information...
2 parents e14f75b + b7c4167 commit bdf4db6c609bab3980b7a452225af0ec1390a6ff @tadzik tadzik committed Sep 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Bailador.pm
View
@@ -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 bdf4db6

Please sign in to comment.