Class HiddenHttpMethodFilter

    • Method Detail

      • setMethodParamName

        public void setMethodParamName​(String methodParamName)
        Set the name of the form parameter with the HTTP method to use.

        By default this is set to "_method".

      • filter

        public reactor.core.publisher.Mono<Voidfilter​(ServerWebExchange exchange,
                                                        WebFilterChain chain)
        Transform an HTTP POST into another method based on methodParamName.
        Specified by:
        filter in interface WebFilter
        Parameters:
        exchange - the current server exchange
        chain - provides a way to delegate to the next filter
        Returns:
        Mono<Void> to indicate when request processing is complete