1Dancer2::Core::Role::StUasnedrarCdoRnetsrpiobnusteesdD(a3Pn)ecrelr2D:o:cCuomreen:t:aRtoiloen::StandardResponses(3)
2
3
4

NAME

6       Dancer2::Core::Role::StandardResponses - Role to provide commonly used
7       responses
8

VERSION

10       version 0.207000
11

METHODS

13   response
14       Generic method that produces a custom response given with a code and a
15       message:
16
17           $self->response( $app, 404, 'Not Found' );
18
19       This could be used to create your own, which is separate from the
20       standard one:
21
22           $self->response( $app, 404, 'File missing in action' );
23
24   standard_response
25       Produces a standard response using the code.
26
27           # first example can be more easily written as
28           $self->standard_response( $app, 404 );
29

AUTHOR

31       Dancer Core Developers
32
34       This software is copyright (c) 2018 by Alexis Sukrieh.
35
36       This is free software; you can redistribute it and/or modify it under
37       the same terms as the Perl 5 programming language system itself.
38
39
40
41perl v5.28.1                      2018D-a1n1c-e1r42::Core::Role::StandardResponses(3)
Impressum