Exemple #1
0
 def DELETE(func,
            url=None,
            host=None,
            port=None,
            redirect=False,
            **headers):
     routing.Route(func, url, 'DELETE', host, port, redirect, headers)
     return func
Exemple #2
0
 def __call__(func,
              url=None,
              host=None,
              port=None,
              redirect=False,
              **headers):
     routing.Route(func, url, None, host, port, redirect, headers)
     return func
Exemple #3
0
 def PUT(func, url=None, host=None, port=None, redirect=False, **headers):
     routing.Route(func, url, 'PUT', host, port, redirect, headers)
     return func