The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Jifty::Response - Canonical internal representation of the result of a Jifty::Action

DESCRIPTION

The answer to a Jifty::Request is a Jifty::Response object. Currently, the response object exists merely to collect the Jifty::Result objects of each Jifty::Action that ran.

new

Creates a new Jifty::Response object.

add_header KEY => VALUE

Add an HTTP header to the outgoing HTTP response.

headers

Returns an array of key-value pairs of all the HTTP headers we want to stick on the outgoing HTTP request.

result MONIKER [RESULT]

Gets or sets the Jifty::Result of the Jifty::Action with the given MONIKER.

results

Returns a hash which maps moniker to its Jifty::Result

messages

Returns the aggregate messages of all of the Jifty::Results.

success

Returns true if none of the results are failures.

failure

Returns true if any of the results failed.