giving request handler a structure