Creates a base class Request that encapsulates repeated logic.