Buckets:

download
raw
649 Bytes
"""Build you own middleware."""
import abc
from fastlife.domain.model.asgi import Receive, Scope, Send
class AbstractMiddleware(abc.ABC):
"""
Abstract Base Class that represent a fastlife middleware.
Starlette provide a middleware stack but does not have an abstract base class.
This is the only reason this class exists.
Fastlife middleware are starlette middlewares.
"""
@abc.abstractmethod
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
"""
Called every time an http request is reveived.
This method before the request object even exists.
"""

Xet Storage Details

Size:
649 Bytes
·
Xet hash:
2060da2ba5531f1dbe33044da44f94f104caa5d9c5a88d74e5ed41a64cf2331d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.