Close

Feign-requestinterceptor Official

Every interceptor must implement the RequestInterceptor interface and its single apply method:

Best way to add a RequestInterceptor to a single FeignClient feign-requestinterceptor

The RequestTemplate object provides access to the request's headers, query parameters, body, and URL, which you can then mutate. Common Use Cases or injecting correlation IDs. Core Mechanism

public interface RequestInterceptor { void apply(RequestTemplate template); } Use code with caution. feign-requestinterceptor

A is a key interface in the OpenFeign library that allows you to modify or add information to outgoing HTTP requests before they are sent. It is commonly used in Spring Boot microservices for tasks like adding authentication headers, logging, or injecting correlation IDs. Core Mechanism