logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Dancer2::Core::Role::StandardResponses - Role to provide commonly used responses

Author

       Dancer Core Developers

Methods

response
       Generic method that produces a custom response given with a code and a message:

           $self->response( $app, 404, 'Not Found' );

       This could be used to create your own, which is separate from the standard one:

           $self->response( $app, 404, 'File missing in action' );

   standard_response
       Produces a standard response using the code.

           # first example can be more easily written as
           $self->standard_response( $app, 404 );

Name

       Dancer2::Core::Role::StandardResponses - Role to provide commonly used responses

Version

       version 1.1.2

See Also