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

fromRequestUri

open static fun fromRequestUri(request: HttpServletRequest): ServletUriComponentsBuilder

Prepare a builder from the host, port, scheme, and path (but not the query) of the HttpServletRequest.

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