Just ovverride the "protocol" attribute on your factory with the callable you want to be called when a new protocol needs to be instanced. I'd suppose you'd probably want to subclass HTTPChannel or something like that.