MCPcopy Create free account
hub / github.com/authlib/authlib / stream

Method stream

authlib/integrations/httpx_client/oauth2_client.py:272–284  ·  view source on GitHub ↗
(
        self, method, url, withhold_token=False, auth=USE_CLIENT_DEFAULT, **kwargs
    )

Source from the content-addressed store, hash-verified

270 return super().request(method, url, auth=auth, **kwargs)
271
272 def stream(
273 self, method, url, withhold_token=False, auth=USE_CLIENT_DEFAULT, **kwargs
274 ):
275 if not withhold_token and auth is USE_CLIENT_DEFAULT:
276 if not self.token:
277 raise MissingTokenError()
278
279 if not self.ensure_active_token(self.token):
280 raise InvalidTokenError()
281
282 auth = self.token_auth
283
284 return super().stream(method, url, auth=auth, **kwargs)

Callers 4

streamMethod · 0.45

Calls 3

ensure_active_tokenMethod · 0.95
MissingTokenErrorClass · 0.85
InvalidTokenErrorClass · 0.50