(ref $self)->new(%$self, curried => [ @{$self->curried}, @curry ]);
}
-sub send {
+sub send { shift->receive(@_) }
+
+sub receive {
my ($self, @message) = @_;
$self->service->receive(@{$self->curried}, @message);
}
sub start {
my ($self, $register, @payload) = @_;
my $req = $self->_new_request($register);
- $self->service->start_request($req, @{$self->curried}, @payload);
+ $self->start_request($req, @payload);
return $req;
}
+sub start_request {
+ my ($self, $req, @payload) = @_;
+ $self->service->start_request($req, @{$self->curried}, @payload);
+}
+
sub request_class { 'Tak::Request' }
sub _new_request {