Graham Ollis > Mojolicious-Plugin-Ident-0.30 > Mojolicious::Plugin::Ident::Response

Download:
Mojolicious-Plugin-Ident-0.30.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.30   Source  

NAME ^

Mojolicious::Plugin::Ident::Response - Ident response object

VERSION ^

version 0.30

DESCRIPTION ^

This class represents the responses as they come back from the remote ident server.

Mojolicious::Plugin::Ident::Response is a AnyEvent::Ident::Response. The base class is subject to change in a future version, although it this class will always provide the interface documented here.

ATTRIBUTES ^

$ident->username

The username of the remote connection as provided by the remote ident server.

$ident->os

The operating system of the remote connection as provided by the remote ident server.

$ident->is_success

True if the ident response was not an error. Only useful in non-blocking mode, as in blocking mode an exception will be thrown in the case of error.

$ident->error_type

The error type returned by the ident server, if an error happened. Only useful in non-blocking mode, as in blocking mode an exception will be thrown in the case of error.

METHODS ^

$ident->same_user

Returns true if the remote user is the same as the one which started the Mojolicious application. The user is considered the same if the remote connection came over the loopback address (127.0.0.1) and the username matches either the server's username or real uid.

SEE ALSO ^

Mojolicious::Plugin::Ident, AnyEvent::Ident::Response

AUTHOR ^

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 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.

syntax highlighting: