Apache2 :: Controller :: Dispatch

Dispatch Basisklasse voor Apache :: Controller
Download nu

Apache2 :: Controller :: Dispatch Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • Perl Artistic License
  • Prijs:
  • FREE
  • Naam uitgever:
  • Mark Hedges
  • Uitgever website:
  • http://search.cpan.org/~markle/

Apache2 :: Controller :: Dispatch Tags


Apache2 :: Controller :: Dispatch Beschrijving

Dispatch Basisklasse voor Apache :: Controller Apache2 :: Controller :: Dispatch is een PERL-module die de basis vormt voor de PERLININITHANDLER-module om inkomende verzoeken naar bibliotheken te verzenden op basis van hun URL.Synopsissynopsis-voorbeelden Gebruik Apache2 :: Controller :: Dispatch: Simple, maar misschien wilt u het controleren OUT APACHE2 :: Controller :: Dispatch :: HASHTREE OF Schrijf de uwe. Allemaal gebruiken de A2C_DISPATCH_MAP-richtlijn, maar de hash-structuur verschilt tussen subclasses. Gemakkelijk Waythis werkt alleen als u één website op de hele server hebt (onder gevorkte MPM) omdat de Intepreter de module slechts één keer laadt en vervolgens een andere verzendkaart niet laadt voor andere Uri's. # vhost.conf: SetHandler Modperl A2C_DISPATCH_MAP /PATH/TO/YAML/SYCK/Dispatch/hash/File.yaml PerlinithAnler Apache2 :: Controller :: Dispatch :: Eenvoudig Normale Waythe Normale Way ondersteunt veel apart Dispatch Maps op een server, maar elke toepassing moet een verzendklasse subclass maken, zelfs als het geen methoden heeft. # vhost.conf: perllloadmodule myapp :: verzending; SetHandler Modperl A2C_DISPATCH_MAP /ETC/MYAPPPATCH_MAP /ETC/MYAPP/Dispatch.yaml Perlinithandler MyApp :: Dispatch # /etc/myApp/dispatch.yaml: foo: myapp :: controller :: foo bar: myapp :: controller: : Bar Biz: MyApp :: C :: BIZ 'BIZ / BAZ': MYAPP :: Controller :: BIZ :: BAZ # Lib / MyApp / Dispatch.pm: Pakket MyApp :: Dispatch; Gebruik Base QW (Apache2 :: Controller :: Dispatch :: Eenvoudig); 1; Hard Way # Vhost.Conf: Perlmodule MyApp :: Dispatch SetHandler Modperl Perlinithandler MyApp :: Dispatch # Lib / MyApp / Dispatch.pm: Pakket MyApp :: Dispatch; strikt gebruik; Gebruik waarschuwingen Fatal => 'Alles'; Gebruik Base QW (Apache2 :: Controller :: Dispatch :: Eenvoudig); # Retourneer een hash-referentie van dispatch_map () sub dispatch_map {return {foo => 'myapp :: c :: foo', bar => 'myapp :: c :: bar', biz => 'myapp :: c :: Biz ',' biz / baz '=>' myapp :: c :: biz :: baz ',}} # of gebruik Richtlijn A2C_DISPATCH_MAP om naar een YAML-bestand te verwijzen. 1; Vereisten: · Perl


Apache2 :: Controller :: Dispatch Gerelateerde software

Testplan

Test :: Plan is een PERL-module om wat intelligentie toe te voegen aan uw testplan. ...

136

Downloaden