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

fromRequest

open static fun fromRequest(request: HttpServletRequest): ServletUriComponentsBuilder

Prepare a builder by copying the scheme, host, port, path, and query string of an HttpServletRequest.

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