MCPcopy
hub / github.com/authlib/authlib / encode_none

Function encode_none

authlib/oauth2/auth.py:32–39  ·  view source on GitHub ↗
(client, method, uri, headers, body)

Source from the content-addressed store, hash-verified

30
31
32def encode_none(client, method, uri, headers, body):
33 if method == "GET":
34 uri = add_params_to_uri(uri, [("client_id", client.client_id)])
35 return uri, headers, body
36 body = add_params_to_qs(body, [("client_id", client.client_id)])
37 if "Content-Length" in headers:
38 headers["Content-Length"] = str(len(body))
39 return uri, headers, body
40
41
42class ClientAuth:

Callers

nothing calls this directly

Calls 2

add_params_to_uriFunction · 0.90
add_params_to_qsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…