Update docs example to correctly use the http lib