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

NAME

Articulate::Request - represent a request

FUNCTIONS

new_request

  my $request = new_request verb => $data;

Creates a new request, using the verb and data supplied as the respective arguments.

METHODS

new

An unremarkable Moo constructor.

perform

Sends the to the articulate service.

Note: the behaviour of this method may change!

ATTRIBUTES

verb

The action being performed, e.g. create, read, etc. The verbs available are entirely dependant on the application: A request will be handled by a service provider (see Articulate::Service) which will typically decide if it can fulfil the request based on the verb.

data

The information passed along with the request, e.g. { location => '/zone/public/article/hello-world' }. This should always be a hashref.

app

The app for which the request has been made.

user_id

The user_id making the request. This is typically inferred from the framework.