Skip to content
Myr

Concise URL instantiation. (#3364)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent 6f9b509 · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:httpx/_models.py+1 added-3 removed
326 unmodified lines
327 method.decode("ascii").upper()328 if isinstance(method, bytes)329 else method.upper()330 )331 self.url = URL(url)332 if params is not None:333 self.url = self.url.copy_merge_params(params=params)331 self.url = URL(url) if params is None else URL(url, params=params)332 self.headers = Headers(headers)333 self.extensions = {} if extensions is None else extensions334335 if cookies:
874 unmodified lines