Go library functions for HTTP services