dj_blacksmith#
- class dj_blacksmith.AsyncAbstractMiddlewareFactoryBuilder(settings: Mapping[str, Any])#
Build the factory
- abstract __call__(request: django.http.request.HttpRequest) blacksmith.middleware._async.base.AsyncHTTPMiddleware #
Called on demand per request to build a client with this middleware
- class dj_blacksmith.AsyncCircuitBreakerMiddlewareBuilder(settings: Mapping[str, Any], metrics: blacksmith.domain.model.middleware.prometheus.PrometheusMetrics)#
Build Circuit Breaker Middleware.
- build() blacksmith.middleware._async.base.AsyncHTTPMiddleware #
Build the middleware from the settings, optionnaly use the metrics.
- class dj_blacksmith.AsyncForwardHeaderFactoryBuilder(settings: Mapping[str, Any])#
Forward headers (every keys in kwargs)
- Parameters
kwargs – headers
- __call__(request: django.http.request.HttpRequest) blacksmith.middleware._async.base.AsyncHTTPAddHeadersMiddleware #
Called on demand per request to build a client with this middleware
- class dj_blacksmith.AsyncHTTPCacheMiddlewareBuilder(settings: Mapping[str, Any], metrics: blacksmith.domain.model.middleware.prometheus.PrometheusMetrics)#
Build HTTP Cache Middleware.
- build() blacksmith.middleware._async.http_cache.AsyncHTTPCacheMiddleware #
Build the middleware from the settings, optionnaly use the metrics.
- class dj_blacksmith.AsyncPrometheusMiddlewareBuilder(settings: Mapping[str, Any], metrics: blacksmith.domain.model.middleware.prometheus.PrometheusMetrics)#
Build Prometheus Middleware.
- build() blacksmith.middleware._async.prometheus.AsyncPrometheusMiddleware #
Build the middleware from the settings, optionnaly use the metrics.
- class dj_blacksmith.SyncAbstractMiddlewareFactoryBuilder(settings: Mapping[str, Any])#
Build the factory
- abstract __call__(request: django.http.request.HttpRequest) blacksmith.middleware._sync.base.SyncHTTPMiddleware #
Called on demand per request to build a client with this middleware
- class dj_blacksmith.SyncCircuitBreakerMiddlewareBuilder(settings: Mapping[str, Any], metrics: blacksmith.domain.model.middleware.prometheus.PrometheusMetrics)#
Build Circuit Breaker Middleware.
- build() blacksmith.middleware._sync.base.SyncHTTPMiddleware #
Build the middleware from the settings, optionnaly use the metrics.
- class dj_blacksmith.SyncForwardHeaderFactoryBuilder(settings: Mapping[str, Any])#
Forward headers (every keys in kwargs)
- Parameters
kwargs – headers
- __call__(request: django.http.request.HttpRequest) blacksmith.middleware._sync.base.SyncHTTPAddHeadersMiddleware #
Called on demand per request to build a client with this middleware
- class dj_blacksmith.SyncHTTPCacheMiddlewareBuilder(settings: Mapping[str, Any], metrics: blacksmith.domain.model.middleware.prometheus.PrometheusMetrics)#
Build HTTP Cache Middleware.
- build() blacksmith.middleware._sync.http_cache.SyncHTTPCacheMiddleware #
Build the middleware from the settings, optionnaly use the metrics.
- class dj_blacksmith.SyncPrometheusMiddlewareBuilder(settings: Mapping[str, Any], metrics: blacksmith.domain.model.middleware.prometheus.PrometheusMetrics)#
Build Prometheus Middleware.
- build() blacksmith.middleware._sync.prometheus.SyncPrometheusMiddleware #
Build the middleware from the settings, optionnaly use the metrics.