Add timeout parameter to `HTTPClient`

Adds a timeout parameter to `HTTPClient`'s `__init__`. With this change, invalid connections will timeout after one second instead of using the default timeout.