code: def init_resource(self, request, res):
          
          res.location_query = request.uri_query
          res.payload = (request.content_type, request.payload)
          return res
docs: Helper function to initialize a new resource.
  
          :param request: the request that generate the new resource
          :param res: the resource
          :return: the edited resource