async example code and http example

need to be mashed together to work