Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 54797
Status: rejected
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: andrey [...] kostenko.name
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: is_xhr method
I want to add method is_xhr to Catalyst::Request. Here is a code: sub is_xhr { my $self = shift; my $req_with = $self->header('X-Requested-With'); return 1 if defined $req_with and $req_with eq 'XMLHttpRequest'; } It is commonly used by AJAX application, if you need to support users without JavaScript. This method exists in ruby on rails, and it is cool :-)
This is not going to go into the Catalyst core. However, the functionality is now available in a separate component called Catalyst::TraitFor::Request::XMLHttpRequest.