use Dancer2; get '/' => sub { "Hello World" }; dance; #### use REST::Client; my $client = REST::Client->new(); $client->GET('http://localhost:3000/'); print $client->responseContent();