added basic functionality for all HTTP methods