connexion.decorators.decorator

This module defines a BaseDecorator to wrap a user view function and a RequestResponseDecorator which manages the lifecycle of a request internally in Connexion.

Module Contents

Classes

BaseDecorator

RequestResponseDecorator

Manages the lifecycle of the request internally in Connexion.

Attributes

logger

connexion.decorators.decorator.logger
class connexion.decorators.decorator.BaseDecorator
__call__(self, function)
Return type

types.FunctionType

__repr__(self)
Return type

str

class connexion.decorators.decorator.RequestResponseDecorator(api, mimetype)

Bases: BaseDecorator

Manages the lifecycle of the request internally in Connexion. Filter the ConnexionRequest instance to return the corresponding framework specific object.

__call__(self, function)
Return type

types.FunctionType

__repr__(self)
Return type

str