pigeon.middleware.components¶
Submodules¶
- pigeon.middleware.components.cache_control
- pigeon.middleware.components.component
- pigeon.middleware.components.connection
- pigeon.middleware.components.content_negotiation
- pigeon.middleware.components.cookies
- pigeon.middleware.components.cors
- pigeon.middleware.components.date
- pigeon.middleware.components.host
- pigeon.middleware.components.mediafiles
- pigeon.middleware.components.method
- pigeon.middleware.components.server
- pigeon.middleware.components.staticfiles
Package Contents¶
- class pigeon.middleware.components.MiddlewareComponent¶
Middleware component that can be used by a preprocessor or postprocessor to process requests.
- classmethod preprocess(request: pigeon.http.HTTPRequest) pigeon.http.HTTPRequest | pigeon.http.HTTPResponse ¶
- Abstractmethod:
- classmethod process(request: pigeon.http.HTTPRequest, func: Callable)¶
- classmethod postprocess(response: pigeon.http.HTTPResponse, request: pigeon.http.HTTPRequest) pigeon.http.HTTPResponse ¶
- Abstractmethod: