@UnstableApi
    public Endpoint withoutTrailingDot() {
        if (!hasTrailingDot(host)) {
            return this;
        }

        final String stripped = host.substring(0, host.length() - 1);
        return new Endpoint(type, stripped, ipAddr, port, weight, attributes);
    }
Returns a new {@link Endpoint} with a host whose trailing dot is removed.

@return the new endpoint with the new host whose trailing dot is removed.
        {@code this} if the {@link #host()} does not end with a dot ({@code .}).
core/src/main/java/com/linecorp/armeria/client/Endpoint.java