-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Route, RouteResult and redirection flow
Signed-off-by: Eloi DEMOLIS <[email protected]>
- Loading branch information
Showing
8 changed files
with
249 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
HTTP/1.1 200 OK | ||
%Content-Length: %CONTENT_LENGTH | ||
Sozu-Id: %REQUEST_ID | ||
|
||
<h1>%CLUSTER_ID Custom 200</h1> | ||
<p>original url: %ROUTE</p> | ||
<p>rewritten url: %REDIRECT_LOCATION</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
HTTP/1.1 404 Not Found | ||
Cache-Control: no-cache | ||
Connection: close | ||
Sozu-Id: %SOZU_ID | ||
Sozu-Id: %REQUEST_ID | ||
|
||
<h1>My own 404 error page</h1> | ||
<p>Your request %SOZU_ID found no frontend and cannot be redirected.</p> | ||
<p>Your request %REQUEST_ID found no frontend and cannot be redirected.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.