what is X-Cascade header

前端 未结 1 597
旧时难觅i
旧时难觅i 2021-02-19 23:27

Rack documentation says that

File servers support X-Cascade header

rack-mount says that

Rack::Mount supports Rack’s +X-Cascade+         


        
1条回答
  •  囚心锁ツ
    2021-02-20 00:03

    The server will set the X-Cascade header to "pass" to continue to try other routes. This allows for multiple routes to be nested/stacked.

    The general purpose of this is to pass the request on to other middlewares to handle the request if that specific handler doesn't handle it.

    0 讨论(0)
提交回复
热议问题