title: How does a Micronaut controller determine its base URL
body: <p>For example if I have the following controller:</p>
  
  <pre><code>import io.micronaut.http.MediaType;
  import io.micronaut.http.annotation.*;
  
  @Controller("/test")
  public class TestController {
      @Get()
      @Produces(MediaType.TEXT_PLAIN)
      public String index() {
          // How should this be implemented?
          return "???";
      }
  }
  </code></pre>
  
  <p>and I run it on my-server, then I would like the index method to return <a href="http://my-server:8080" rel="nofollow noreferrer">http://my-server:8080</a>.</p>