🌻 📖 AnyEvent::Finger::Request

NAME

AnyEvent::Finger::Request - Simple asynchronous finger request

VERSION

version 0.14

SYNOPSIS

 my $request = AnyEvent::Finger::Request->new('foo@localhost');

DESCRIPTION

This class represents finger request. It is passed into AnyEvent::Finger::Server when a finger request is made. See the documentation on that class for more details.

CONSTRUCTOR

new

 my $request = AnyEvent::Finger::Request->new( $address )

The constructor takes a string which is the raw finger request.

ATTRIBUTES

All attributes for this class are read only.

verbose

 my $value = $request->verbose

True if request is asking for a verbose response. False if request is not asking for a verbose response.

username

 my $value = $request->username

The username being requested.

hostnames

 my $value = $request->hostnames

Returns a list of hostnames (as an array ref) in the request.

as_string

 my $value = $request->as_string

Converts just the username and hostnames fields into a string.

listing_request

 my $value = $request->listing_request

Return true if the request is for a listing of users.

forward_request

 my $value = $request->forward_request

Return true if the request is to query another host.

SEE ALSO

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012-2022 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.