You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -337,7 +337,7 @@ spotty.before("/api/user/file/*", POST, "application/pdf", (request, response) -
337
337
});
338
338
```
339
339
340
-
`After filters`evaluate after each request even if in `before filter` or route there was an exception.
340
+
`After filters`execute your code after each request, even if there was an exception in `before filter`, or in the `route` handling this request.
341
341
Same as for `before filter`, you can optionally pass a route template path, http method and content-type to restrict the filter for the matched path, http method and content-type.
342
342
```java
343
343
// attach the Instant object to the request to save the start timestamp of the beginning of the request
@@ -432,8 +432,17 @@ final Spotty spotty = Spotty.builder()
432
432
// to customise this you can use this builder function
0 commit comments