# ABSTRACT: Base class for responders
package Pinto::Server::Responder;
use Moose;
use Carp;
use Pinto::Types qw(Dir);
#-------------------------------------------------------------------------------
our $VERSION = '0.095'; # VERSION
#-------------------------------------------------------------------------------
has request => (
is => 'ro',
isa => 'Plack::Request',
required => 1,
);
has root => (
is => 'ro',
isa => Dir,
required => 1,
);
#-------------------------------------------------------------------------------
sub respond { croak 'abstract method' }
#-------------------------------------------------------------------------------
__PACKAGE__->meta->make_immutable;
#-------------------------------------------------------------------------------
1;
__END__
=pod
=encoding UTF-8
=for :stopwords Jeffrey Ryan Thalhammer BenRifkah Fowler Jakob Voss Karen Etheridge Michael
G. Bergsten-Buret Schwern Oleg Gashev Steffen Schwigon Tommy Stanton
Wolfgang Kinkeldei Yanick Boris Champoux hesco popl Däppen Cory G Watson
David Steinbrunner Glenn responders
=head1 NAME
Pinto::Server::Responder - Base class for responders
=head1 VERSION
version 0.095
=head1 METHODS
=head2 respond( $request )
Given a L<Plack::Request>, responds with the appropriate
PSGI-compatible response. This is an abstract method. It is your job
to implement it in a concrete subclass.
=head1 AUTHOR
Jeffrey Ryan Thalhammer <jeff@stratopan.com>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Jeffrey Ryan Thalhammer.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut