Add a function to return the local endpoint of a http server