Group
Extension

Matches 1

Plack-Middleware-FixIEXDomainRequestBug ( J/JJ/JJNAPIORK/Plack-Middleware-FixIEXDomainRequestBug-0.001.tar.gz, JJNAPIORK, 2013; MetaCPAN )
Plack-Middleware-FixIEXDomainRequestBug/lib/Plack/Middleware/FixIEXDomainRequestBug.pm ( view source; MetaCPAN )
;
    builder {
      enable 'FixIEXDomainRequestBug',
        force_content_type => 'application/json';
      $app;
    };

=head2 Custom Provider

Use some custom code to provide a valid mimetype

 
   my $env = shift;
          if($env->{PATH_INFO} =~ m{^/api}) {
            return 'application/json';
          } else {
            return 'application/x-www-form-urlencoded';
          }
        
est->new($env);

          ## Assume a request url like "http://myapp.com/path?format=application/json"
          return $req->query_parameters->get('format')
        };
      $app;
    };

=head1 ATT

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.