Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

agriconnect / meinheld   python

Repository URL to install this package:

/ common.py

from meinheld import server

CLIENT_KEY = 'meinheld.client'
CONTINUATION_KEY = 'meinheld.continuation'

class Continuation(object):

    def __init__(self, client):
        self.client = client

    def suspend(self, timeout=0):
        return server._suspend_client(self.client, timeout)
    
    def resume(self, *args, **kwargs):
        return server._resume_client(self.client, args, kwargs)