The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::Mattermost::API::Response - container for responses from the Mattermost API

DESCRIPTION

A common container for responses from the Mattermost API.

ATTRIBUTES

code

The HTTP code returned.

headers

Headers from the Mojo::Message::Response object.

message

A message (or undef) from the API (for example if there is a code of 403, the message will be "Forbidden").

prev

The returned Mojo::Message::Response object.

raw_content

JSON-encoded content or undef.

is_error
is_success
content

Decoded content in ArrayRef or HashRef form.

item_view

Whether or not the response should try to create a v4::Object object.

single_item

Whether or not the expected v4::Object should be an ArrayRef.

item

The first v4::Object object.

items

All view objects.

AUTHOR

Mike Jones email:mike@netsplit.org.uk