All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fun.fengwk.convention4j.springboot.starter.webflux.webclient.InternalInvokerWebClientRequestModifier Maven / Gradle / Ivy

There is a newer version: 0.0.43
Show newest version
package fun.fengwk.convention4j.springboot.starter.webflux.webclient;

import fun.fengwk.convention4j.springboot.starter.result.ResultInternalInvokerUtils;
import fun.fengwk.convention4j.springboot.starter.webflux.context.WebFluxContext;
import org.springframework.web.reactive.function.client.ClientRequest;

/**
 * @author fengwk
 */
public class InternalInvokerWebClientRequestModifier implements WebClientRequestModifier {

    @Override
    public void modify(WebFluxContext context, ClientRequest.Builder requestBuilder) {
        ResultInternalInvokerUtils.setIgnoreErrorHttpStatus((name, value) ->
            requestBuilder.headers(headers -> headers.set(name, value)));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy