Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is X-Cascade header

Tags:

ruby

Rack documentation says that

File servers support X-Cascade header

rack-mount says that

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

What is X-Cascade ? I could not find any documentation on X-Cascade.

like image 240
Nick Vanderbilt Avatar asked Apr 13 '11 02:04

Nick Vanderbilt


1 Answers

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.

like image 121
Mike Lewis Avatar answered Sep 21 '22 02:09

Mike Lewis