define HttpConnectionClass as a function, so that the whole HTTP process would be linked to the executable only if needed