code: def check_auth(func):
      
      def wrapper(handler, *args, **kwargs):
          if handler.check_auth_header():
              return func(handler, *args, **kwargs)
      return wrapper
docs: Decorator function to check authorization header.
  
      Usage example:
      @check_auth
      def do_PUT_foo():
          pass