diff options
Diffstat (limited to '')
| -rw-r--r-- | lib/Net/HTTP/Console.pm | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Net/HTTP/Console.pm b/lib/Net/HTTP/Console.pm index 2036b47..eef3ba8 100644 --- a/lib/Net/HTTP/Console.pm +++ b/lib/Net/HTTP/Console.pm @@ -4,7 +4,6 @@ our $VERSION = 0.01; use MooseX::Declare; class Net::HTTP::Console { - use Try::Tiny; with 'MooseX::Getopt'; with 'Net::HTTP::Console::Role::Headers'; @@ -16,25 +15,6 @@ class Net::HTTP::Console { has url => (isa => 'Str', is => 'rw', predicate => 'has_url'); has format => (isa => 'Str', is => 'rw', predicate => 'has_format'); has format_mode => (isa => 'Str', is => 'rw', predicate => 'has_format_mode'); - - method dispatch ($input) { - my $result; - try { - foreach ($self->all_plugins) { - last if ($result = $_->dispatch($input)); - } - }catch{ - print "[ERROR]: ".$_; - }; - } - - method new_anonymous_method ($http_method, $path) { - $self->api_object->meta->add_net_api_method( - 'anonymous', - method => $http_method, - path => $path, - ); - } } 1; |
