reimplemented code dependent on httpcore deprecated components. Still
Multipart stuff missing