Add HTTP method function