The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

HTTP::Balancer::Role::Command - the mixin for command handlers

SYNOPSIS

METHODS

prepare()

the instance method called before running.

the method is here to be hooked with 'around' keyword of Moose.

command_name

class and instance method

returns the last name of current command, lowercase, separated with whitespace.

ordinary_args

returns the ordinary arguments for arbitrary command handler.

the method is here to be overrided and returns empty list by default.

argv($position)

helper.

return the ordinary argument at $position or exit with help text.