# uproot.source.http.make_connection

Defined in [uproot.source.http](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/source/http.py) on [line 33](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/source/http.py#L33).

### uproot.source.http.make_connection(parsed_url: ParseResult, timeout: float | None)

* **Parameters:**
  * **parsed_url** (`urllib.parse.ParseResult`) – The URL to connect to, which
    may be HTTP or HTTPS.
  * **timeout** (*None* *or* *float*) – An optional timeout in seconds.

Creates a `http.client.HTTPConnection` or a `http.client.HTTPSConnection`,
depending on the URL scheme.
