class XMPP::Stanza::Caps

Overview

Capabilities Reference: https://xmpp.org/extensions/xep-0115.html#stream "A server MAY include its entity capabilities in a stream feature element so that connecting clients and peer servers do not need to send service discovery requests each time they connect." This is not a stream feature but a way to let client cache server disco info.

Defined in:

xmpp/stanza/stream/cap.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module XMPP::Stanza::Packet

name : String name, to_xml(xml : XML::Builder)
to_xml : String
to_xml

Constructor Detail

def self.new(node : XML::Node) #

[View source]

Class Method Detail

def self.xml_name : XMLName #

[View source]

Instance Method Detail

def ext : String #

[View source]
def ext=(ext : String) #

[View source]
def hash : String #
Description copied from class Object

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.


[View source]
def hash=(hash : String) #

[View source]
def name : String #

[View source]
def node : String #

[View source]
def node=(node : String) #

[View source]
def to_xml(elem : XML::Builder) #

[View source]
def ver : String #

[View source]
def ver=(ver : String) #

[View source]