I wanted to put that in the connection but the connection implementation is unkown and I can't extedn HTTPUrlConnection as it is abstract and would require me to implement the whole connection flow.