No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7a3be16 Jul 27, 2017
Failed to load latest commit information.
lib/HTTP/Server/Router init Jul 26, 2017
t init Jul 26, 2017
.gitignore init Jul 26, 2017
META6.json init Jul 26, 2017 readme, bleh Jul 26, 2017

A simply YAML router for HTTP::Server::Router

A simple YAML router for HTTP::Server::Router


use HTTP::Server::Router::YAML;
use HTTP::Server::Async;

my $s =;

serve $s;
route-yaml 'route1.yaml';

  /test: # this is the path, you can use :placeholders too
    controller: Whatever #an attempt to require this module will be made
    sub:        test     #this is the method in the module that the requests
                         #   to path will passed along to



This method expects an HTTP::Server as an argument and will bind itself to whatever server(s) is supplied.

route-yaml (Str $path-to-yaml-file)

This method will attempt to parse the yaml file and bind any paths possible