summaryrefslogtreecommitdiffstats
path: root/lib/OXx/Encoding/Role/Response.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/OXx/Encoding/Role/Response.pm')
-rw-r--r--lib/OXx/Encoding/Role/Response.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/OXx/Encoding/Role/Response.pm b/lib/OXx/Encoding/Role/Response.pm
new file mode 100644
index 0000000..71d186b
--- /dev/null
+++ b/lib/OXx/Encoding/Role/Response.pm
@@ -0,0 +1,24 @@
+package OXx::Encoding::Role::Response;
+use MooseX::Role::Parameterized;
+use namespace::autoclean;
+
+use OXx::Encoding::Types;
+
+parameter encoding => (
+ isa => 'Encoding',
+ required => 1,
+);
+
+parameter html_encoding => (
+ isa => 'Str',
+ lazy => 1,
+ default => sub { shift->encoding },
+);
+
+role {
+ my $p = shift;
+
+ # XXX: set the html encoding here... (need to support this in ox first)
+}
+
+1;