>
> my $got = $self->ua->get('/welcome')->result->text;
>
Relative URLs are resolved by the user agent to $self->ua->server->app,
which in this case is probably a Mojo::HelloWorld instance. I strongly
suggest you use a custom service class with its own Mojo::UserAgent
instance as an attribute. Then make the full service base URL configurable
and just set it to $app->foo_service->ua->server->url. Or similar... you
get the idea.
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mojolicious/731af92e-9aea-4625-a714-424244abc942n%40googlegroups.com.