Refactored request implementation to account for requests with bodies and requests without.