'Registers a function to be run before the first request to this
instance of the application.
The function will be called without any arguments and its return
value is ignored.
.. versionadded:: 0.8'

@setupmethod
def before_first_request(self, f):

    self.before_first_request_funcs.append(f)
    return f
