comparison libervia/server/constants.py @ 1435:396d5606477f

server (proxy): add "Forwarded" and "X-Forwarded-xxx" headers to reverse proxy
author Goffi <goffi@goffi.org>
date Mon, 14 Jun 2021 15:27:33 +0200
parents 388558a30cf8
children 095e94ca6728
comparison
equal deleted inserted replaced
1434:2f6dac783c8e 1435:396d5606477f
117 HTTP_NOT_FOUND = 404 117 HTTP_NOT_FOUND = 404
118 HTTP_INTERNAL_ERROR = 500 118 HTTP_INTERNAL_ERROR = 500
119 HTTP_PROXY_ERROR = 502 119 HTTP_PROXY_ERROR = 502
120 HTTP_SERVICE_UNAVAILABLE = 503 120 HTTP_SERVICE_UNAVAILABLE = 503
121 121
122 ## HTTP HEADERS ##
123 H_FORWARDED = "Forwarded"
124 H_X_FORWARDED_FOR = "X-Forwarded-For"
125 H_X_FORWARDED_HOST = "X-Forwarded-Host"
126 H_X_FORWARDED_PROTO = "X-Forwarded-Proto"
127
128
122 ## Cache ## 129 ## Cache ##
123 CACHE_PUBSUB = 0 130 CACHE_PUBSUB = 0
124 131
125 ## Date/Time ## 132 ## Date/Time ##
126 HTTP_DAYS = ("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun") 133 HTTP_DAYS = ("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun")