From what I read the .then(...) there is an extens...
# getting-started
l
From what I read the .then(...) there is an extension function, right? What is the reason it was put there as such instead of inside the Filter interface as a member with implementation?
a
@Leeeloo Minai yes, thats an extension function on the interface. You'll have to ask the developers why they put it outside of the interface
d
TBH, there isn't a technical reason - it very well could go inside the definition (and we have previously talked about it), although with the presence of the then(RoutingHttpHandler), it's a bit neater to keep all 3 definitions together, as well as being a place to put future implementations. Also, it keeps the definition of the Filter down to the very minimum single method interface.