Skip to content
Myr

auth.py

This file

Path

httpcore/auth.py

18 lines · 506 bytes · Python

Last changed by

Rollin'Tom Christiebefore adoption8a29a0a

History of this file

Take it

AdaptersTom Christiebefore adoptionfab6fcd

lines 1–17why, 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:

Rollin'Tom Christiebefore adoption8a29a0a

line 18why, one step back
18 await self.dispatch.close()