Interface HttpHostResolver

All Known Implementing Classes:
DefaultHttpHostResolver

@DefaultImplementation(DefaultHttpHostResolver.class) public interface HttpHostResolver
Resolves the host name of the current server.
Since:
1.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull String
    resolve(@Nullable io.micronaut.http.HttpRequest request)
    Returns the host of the current server with protocol, host name, and an optional port.
  • Method Details

    • resolve

      @NonNull @NonNull String resolve(@Nullable @Nullable io.micronaut.http.HttpRequest request)
      Returns the host of the current server with protocol, host name, and an optional port.
      Parameters:
      request - The current request
      Returns:
      The host information