Skip to content
Myr

auth.py

This file

Path

httpcore/auth.py

18 lines · 500 bytes · Python

Last changed by

AdaptersTom Christiebefore adoptionfab6fcd

History of this file

Take it

AdaptersTom Christiebefore adoptionfab6fcd

lines 1–18why, one step back
1import typing
23from .adapters import Adapter4from .models import Request, Response567class AuthAdapter(Adapter):8 def __init__(self, dispatch: Adapter):9 self.dispatch = dispatch1011 def prepare_request(self, request: Request) -> None:12 self.dispatch.prepare_request(request)1314 async def send(self, request: Request, **options: typing.Any) -> Response:15 return await self.dispatch.send(request, **options)1617 async def close(self) -> None:18 self.dispatch.close()