How can I add retry-header in cherrypy?
import cherrypy
import os
class Root:
def index(self):
cherrypy.response.headers['Retry-After'] = 60
cherrypy.request.headers["Age"]= 20
cherrypy.config.update({'Retry-After': '60'})
raise cherrypy.HTTPError(503, 'Service Unavailable')
index.exposed = True
cherrypy.quickstart(Root())
This retry-header dt works.