MCPcopy
hub / github.com/authlib/authlib / add_params_to_uri

Function add_params_to_uri

authlib/common/urls.py:91–98  ·  view source on GitHub ↗

Add a list of two-tuples to the uri query components.

(uri, params, fragment=False)

Source from the content-addressed store, hash-verified

89
90
91def add_params_to_uri(uri, params, fragment=False):
92 """Add a list of two-tuples to the uri query components."""
93 sch, net, path, par, query, fra = urlparse.urlparse(uri)
94 if fragment:
95 fra = add_params_to_qs(fra, params)
96 else:
97 query = add_params_to_qs(query, params)
98 return urlparse.urlunparse((sch, net, path, par, query, fra))
99
100
101def quote(s, safe=b"/"):

Callers 15

encode_noneFunction · 0.90
__call__Method · 0.90
prepare_grant_uriFunction · 0.90
add_to_uriFunction · 0.90
add_issuer_parameterMethod · 0.90
validate_requestMethod · 0.90
create_logout_urlMethod · 0.90
create_logout_urlMethod · 0.90

Calls 1

add_params_to_qsFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…