Compilation error using mbed-http library

How I said, when you will not update the Mbed Os library to newest version, the example will work I think.
However, you can check other questions with same/similar Issue.

BR, Jan