$r->any([qw(GET POST)] => '/rpc', headers => { 'Content-Type' => 'application/json-rpc' }, )->to('jsonrpc#handler', 'cors.origin' => 'http://localhost', ); $r->post('