pyramid_blacksmith.middleware_factory

Middleware

class pyramid_blacksmith.middleware_factory.AbstractMiddlewareFactoryBuilder

Build the factory

abstract __call__(request: Request) SyncHTTPMiddleware

Called on demand per request to build a client with this middleware

class pyramid_blacksmith.middleware_factory.ForwardHeaderFactoryBuilder(**kwargs: dict[str, bool])

Forward headers (every keys in kwargs)

Parameters:

kwargs – headers

__call__(request: Request) SyncHTTPAddHeadersMiddleware

Called on demand per request to build a client with this middleware