class documentation
class OperationContext(ABC):
Known subclasses: nexusrpc.handler.CancelOperationContext, nexusrpc.handler.StartOperationContext
Constructor: OperationContext(*args, **kwargs)
Context for the execution of the requested operation method.
Includes information from the request.
| Method | __new__ |
Undocumented |
| Class Variable | headers |
Optional header fields sent by the caller. |
| Class Variable | operation |
The name of the operation. |
| Class Variable | request |
The deadline for the operation handler method. Note that this is the time by which the current _request_ should complete, not the _operation_'s deadline. |
| Class Variable | service |
The name of the service that the operation belongs to. |
| Class Variable | task |
Task cancellation information indicating that a running task should be interrupted. This is distinct from operation cancellation. |