MCPcopy
hub / github.com/encode/httpx / _merge_queryparams

Method _merge_queryparams

httpx/_client.py:433–443  ·  httpx/_client.py::BaseClient._merge_queryparams

Merge a queryparams argument together with any queryparams on the client, to create the queryparams used for the outgoing request.

(
        self, params: QueryParamTypes | None = None
    )

Source from the content-addressed store, hash-verified

431 return merged_headers
432
433 def _merge_queryparams(
434 self, params: QueryParamTypes | None = None
435 ) -> QueryParamTypes | None:
436 class="st">"""
437 Merge a queryparams argument together with any queryparams on the client,
438 to create the queryparams used for the outgoing request.
439 class="st">"""
440 if params or self.params:
441 merged_queryparams = QueryParams(self.params)
442 return merged_queryparams.merge(params)
443 return params
444
445 def _build_auth(self, auth: AuthTypes | None) -> Auth | None:
446 if auth is None:

Callers 1

build_requestMethod · 0.95

Calls 2

mergeMethod · 0.95
QueryParamsClass · 0.85

Tested by

no test coverage detected