Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add generic header() function

  • Loading branch information...
commit 41d43bf01f088ad49b276eb381a4ace1b88329ea 1 parent e14f75b
GlitchMr authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.