client and server manage to talk
[scpubgit/Tak.git] / lib / Tak / Request.pm
CommitLineData
36cf3bcb 1package Tak::Request;
2
3use Moo;
4
5has tag => (is => 'ro', required => 1);
6
7has respond_to => (is => 'ro', required => 1, weak_ref => 1);
8
9sub respond {
10 my $self = shift;
11 $self->respond_to->send_response($self->tag => @_);
12}
13
141;