NAME
WebService::Mattermost::Role::UserAgent
DESCRIPTION
Bundles Mojo::UserAgent
and required parameters for HTTP headers.
USAGE
use Moo;
with 'WebService::Mattermost::Role::UserAgent';
sub something {
my $self = shift;
my $bearer_header = $self->bearer;
my $mmauthtoken = $self->mmauthtoken;
# Methods from Mojo::UserAgent
$self->ua->post(
# ...
);
}
ATTRIBUTES
ua
-
A
Mojo::UserAgent
object.
METHODS
AUTHOR
Mike Jones email:mike@netsplit.org.uk