Added serving code for http and other methods