1 package Catalyst::Plugin::Test::Headers;
8 my $c = $class->NEXT::prepare(@_);
10 $c->response->header( 'X-Catalyst-Engine' => $c->engine );
11 $c->response->header( 'X-Catalyst-Debug' => $c->debug ? 1 : 0 );
14 my @components = sort keys %{ $c->components };
15 $c->response->headers->push_header( 'X-Catalyst-Components' => [ @components ] );
20 my @plugins = sort grep { m/^Catalyst::Plugin/ } @{ $class . '::ISA' };
21 $c->response->headers->push_header( 'X-Catalyst-Plugins' => [ @plugins ] );
29 $c->NEXT::prepare_action(@_);
30 $c->res->header( 'X-Catalyst-Action' => $c->req->action );