Jesse Luehrs > Plack-Client-0.06 > Plack::Client::Backend::psgi_local

Download:
Plack-Client-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.06   Source  

NAME ^

Plack::Client::Backend::psgi_local - backend for handling local app requests

VERSION ^

version 0.06

SYNOPSIS ^

  Plack::Client->new(
      'psgi-local' => {
          apps => { myapp => sub { ... } },
      },
  );

  Plack::Client->new(
      'psgi-local' => Plack::Client::Backend::psgi_local->new(
          apps => { myapp => sub { ... } },
      ),
  );

DESCRIPTION ^

This backend implements requests made against local PSGI apps.

METHODS ^

new

Constructor. Takes a hash of arguments, with these keys being valid:

apps

A mapping of local app names to PSGI app coderefs.

app_for

Returns the PSGI app coderef for the given app name.

app_from_request

Takes a Plack::Request object, and returns the app corresponding to the app corresponding to the app name given in the authority section of the given URL.

SEE ALSO ^

Please see those modules/websites for more information related to this module.

AUTHOR ^

Jesse Luehrs <doy at tozt dot net>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Jesse Luehrs.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: