Updating Request method to handle both POST and GET.