'@param channel: the channel we\'re connected to.
@param queued: (deprecated) are we in the request queue, or can we
start writing to the transport?'

def __init__(self, channel, queued=_QUEUED_SENTINEL):

    self.notifications = []
    self.channel = channel
    self.requestHeaders = Headers()
    self.received_cookies = {}
    self.responseHeaders = Headers()
    self.cookies = []
    self.transport = self.channel.transport
    if (queued is _QUEUED_SENTINEL):
        queued = False
    self.queued = queued
