Add a function to http-serve