https://kotlinlang.org logo
#http4k
Title
# http4k
k

kushalp

09/12/2019, 10:57 AM
Does the order matter when applying filters? Is there any significant difference in the order that server, request, and response filters need to be applied?
d

dave

09/12/2019, 10:59 AM
generally, no - but the ordering will obviously be important depending on what type of effect you want to have - for example: adding a RequestTracing filter and a request Logging filter - if you want the request traces to be present when you log the request, you need to add it first
does that make sense?
k

kushalp

09/12/2019, 11:46 AM
Yes, it does
2 Views