creates http library with functions, routing, and decoding