Reputation: 1
When using timeout interceptor (TimeoutInterceptor
in timeout.interceptor.ts) with EP that returns StreamableFile
, the interceptor doesn't work - it doesn't early return a response when timeout passed.
It does work when returning a list of string.
File is downloaded.
A response with code 408 should be returned.
Note that the timeout interceptor works when submitting a request to GET /foo
Set an interceptor that returns a timeout response if certain amount of time passed before the request was resolved. It doesn't work for endpoints that return StreamableFile
Upvotes: 0
Views: 50