Skip to content
Myr

authentication.py

This file

Path

httpcore/adapters/authentication.py

18 lines · 520 bytes · Python

Last changed by

Merge pull request #23 from encode/adaptersTom Christiebefore adoption696c054

History of this file

Take it

Merge pull request #23 from encode/adaptersTom Christiebefore adoption696c054

lines 1–18why, one step back
1import typing
23from ..interfaces import Adapter4from ..models import Request, Response567class AuthenticationAdapter(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 await self.dispatch.close()