request helper created to determine the request type and enforce POST or GET requests