protected String calculateServerUrl(HttpServletRequest request, String apiDocsUrl, Locale locale) {
		super.initOpenAPIBuilder(locale);
		String calculatedUrl = getServerUrl(request, apiDocsUrl);
		ServletServerHttpRequest serverRequest = request != null ? new ServletServerHttpRequest(request) : null;
		return openAPIService.calculateServerBaseUrl(calculatedUrl, serverRequest);
	}
Calculate server url.

@param request    the request
@param apiDocsUrl the api docs url
@param locale     the locale
@return the string
springdoc-openapi-starter-webmvc-api/src/main/java/org/springdoc/webmvc/api/OpenApiResource.java