Sha256: 4750d755c6555673168752c7e8d85bec9d5d02049eba4bedd5ff3abe02b11418
Contents?: true
Size: 662 Bytes
Versions: 34
Compression:
Stored size: 662 Bytes
Contents
# encoding: UTF-8 module Vines class Stream class Client class Start < State def initialize(stream, success=TLS) super end def node(node) raise StreamErrors::NotAuthorized unless stream?(node) stream.start(node) doc = Document.new features = doc.create_element('stream:features') do |el| el << doc.create_element('starttls') do |tls| tls.default_namespace = NAMESPACES[:tls] tls << doc.create_element('required') end end stream.write(features) advance end end end end end
Version data entries
34 entries across 34 versions & 4 rubygems