RequestContext#

class mobu.dependencies.context.RequestContext(request, logger, manager, repo_manager, factory)#

Bases: object

Holds the incoming request and its surrounding context.

Parameters:

Attributes Summary

factory

Component factory.

logger

Request logger, rebound with discovered context.

manager

Global singleton flock manager.

repo_manager

Global singleton git repo manager.

request

Incoming request.

Methods Summary

rebind_logger(**values)

Add the given values to the logging context.

Attributes Documentation

factory: Factory#

Component factory.

logger: BoundLogger#

Request logger, rebound with discovered context.

manager: FlockManager#

Global singleton flock manager.

repo_manager: RepoManager#

Global singleton git repo manager.

request: Request#

Incoming request.

Methods Documentation

rebind_logger(**values)#

Add the given values to the logging context.

Parameters:

**values (Any) – Additional values that should be added to the logging context.

Return type:

None