Remove the S3 specific details from the server and add a module like stream and storage for HTTP protocols