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

fromCurrentRequest

open static fun fromCurrentRequest(): ServletUriComponentsBuilder

Same as #fromRequest(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.