| 1 | package Tanker::ResponseHandler; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use Tanker::Request; | ||
| 6 | |||
| 7 | sub new ($$) | ||
| 8 | { | ||
| 9 | # standard stuff for creating a new object | ||
| 10 | # I'm not sure if this *should* be an object | ||
| 11 | # but I think it'll probably be useful in the end | ||
| 12 | my $proto = shift; | ||
| 13 | my $class = ref($proto) || $proto; | ||
| 14 | |||
| 15 | # bless our self into a hash | ||
| 16 | my $self = {}; | ||
| 17 | bless ($self, $class); | ||
| 18 | |||
| 19 | |||
| 20 | # and give it on back | ||
| 21 | return $self; | ||
| 22 | } | ||
| 23 | |||
| 24 | sub handle ($$) | ||
| 25 | { | ||
| 26 | my ($self, $request) = @_; | ||
| 27 | |||
| 28 | # do something | ||
| 29 | } | ||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | 1; | ||
| 35 | __END__ |