MCPcopy
hub / github.com/authlib/authlib / __call__

Method __call__

authlib/integrations/requests_client/oauth1_session.py:17–24  ·  view source on GitHub ↗
(self, req)

Source from the content-addressed store, hash-verified

15 """Signs the request using OAuth 1 (RFC5849)."""
16
17 def __call__(self, req):
18 url, headers, body = self.prepare(req.method, req.url, req.headers, req.body)
19
20 req.url = to_native(url)
21 req.prepare_headers(headers)
22 if body:
23 req.body = body
24 return req
25
26
27class OAuth1Session(OAuth1Client, Session):

Callers

nothing calls this directly

Calls 2

to_nativeFunction · 0.90
prepareMethod · 0.45

Tested by

no test coverage detected