add timeout parameter to http client

@gerold-penz please, review