Peter Karman > Search-OpenSearch-Server-0.26 > Search::OpenSearch::Result

Download:
Search-OpenSearch-Server-0.26.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.26   Source   Latest Release: Search-OpenSearch-Server-0.300

NAME ^

Search::OpenSearch::Result - REST action response

SYNOPSIS ^

 my $server = Search::OpenSearch::Server::Plack->new();
 my $result = $server->do_rest_api( Plack::Request->new( $env ) );
 print $result;

DESCRIPTION ^

This class is used internally to represent the result of a REST API action.

METHODS ^

new( attrs )

attrs are key/value pairs with keys including:

build_time
search_time
code
doc
success
msg
total

stringify

Returns the object as a JSON-encoded string.

AUTHOR ^

Peter Karman, <karman at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-search-opensearch-server at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Search-OpenSearch-Server. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Search::OpenSearch::Server

You can also look for information at:

COPYRIGHT & LICENSE ^

Copyright 2012 Peter Karman.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: