Factor out request method on app for easier testing.