Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Catalyst::Request::RESUser Contributed Perl DocumentCatalyst::Request::REST(3)

NAME
       Catalyst::Request::REST - A REST-y subclass of Catalyst::Request

SYNOPSIS
	    if ( $c->request->accepts('application/json') ) {
		...
	    }

	    my $types =	$c->request->accepted_content_types();

DESCRIPTION
       This is a subclass of "Catalyst::Request" that applies the
       Catalyst::TraitFor::Request::REST role to your request class. That
       trait adds a few	methods	to the request object to facilitate writing
       REST-y code.

       This class is only here for backwards compatibility with	applications
       already subclassing this	class. New code	should use
       Catalyst::TraitFor::Request::REST directly.

       Catalyst::Action::REST and Catalyst::Controller::REST will arrange for
       the request trait to be applied if needed.

SEE ALSO
       Catalyst::TraitFor::Request::REST.

AUTHORS
       See Catalyst::Action::REST for authors.

LICENSE
       You may distribute this code under the same terms as Perl itself.

perl v5.32.0			  2017-12-05	    Catalyst::Request::REST(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHORS | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Catalyst::Request::REST&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help