org.springframework.http.server.reactive

Interface ServerHttpRequest.Builder

    • Method Detail

      • uri

        ServerHttpRequest.Builder uri(java.net.URI uri)
        Set the URI to use with the following conditions:
        • If path is also set, it overrides the path of the URI provided here.
        • If contextPath is also set, or already present, it must match the start of the path of the URI provided here.
      • path

        ServerHttpRequest.Builder path(java.lang.String path)
        Set the path to use instead of the "rawPath" of the URI of the request with the following conditions:
        • If uri is also set, the path given here overrides the path of the given URI.
        • If contextPath is also set, or already present, it must match the start of the path given here.
        • The given value must begin with a slash.
      • contextPath

        ServerHttpRequest.Builder contextPath(java.lang.String contextPath)
        Set the contextPath to use.

        The given value must be a valid contextPath and it must match the start of the path of the URI of the request. That means changing the contextPath, implies also changing the path via path(String).

      • header

        ServerHttpRequest.Builder header(java.lang.String key,
                                         java.lang.String value)
        Set or override the specified header.
      • sslInfo

        ServerHttpRequest.Builder sslInfo(SslInfo sslInfo)
        Set the SSL session information. This may be useful in environments where TLS termination is done at the router, but SSL information is made available in some other way such as through a header.
        Since:
        5.0.7