Class DifyLoggingFilter
java.lang.Object
io.github.guoshiqiufeng.dify.client.spring5.logging.DifyLoggingFilter
- All Implemented Interfaces:
org.springframework.web.reactive.function.client.ExchangeFilterFunction
public class DifyLoggingFilter
extends Object
implements org.springframework.web.reactive.function.client.ExchangeFilterFunction
A logging filter for Dify client requests and responses.
This filter logs the request and response details including headers, body, and timing.
- Since:
- 2025/4/29 15:30
- Version:
- 0.11.0
- Author:
- yanghq
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> filter(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ExchangeFunction next) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.reactive.function.client.ExchangeFilterFunction
andThen, apply
-
Constructor Details
-
DifyLoggingFilter
public DifyLoggingFilter()
-
-
Method Details
-
filter
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> filter(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ExchangeFunction next) - Specified by:
filterin interfaceorg.springframework.web.reactive.function.client.ExchangeFilterFunction
-