spring-framework / org.springframework.web.servlet.support / ServletUriComponentsBuilder / fromCurrentServletMapping

fromCurrentServletMapping

open static fun fromCurrentServletMapping(): ServletUriComponentsBuilder

Same as #fromServletMapping(HttpServletRequest) except the request is obtained through RequestContextHolder.

Note: This method extracts values from "Forwarded" and "X-Forwarded-*" headers if found. See class-level docs.