class Lavinmq::HTTPClient

Defined in:

lavinmq-http-client.cr

Constant Summary

HEADERS = HTTP::Headers {"Content-Type" => "application/json"}

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String) #

[View source]

Instance Method Detail

def add_user(username : String, password : String) #

[View source]
def add_vhost(vhost_name : String) #

[View source]
def change_password(username : String, password : String) #

[View source]
def delete_user(username : String) #

[View source]
def delete_vhost(vhost_name : String) #

[View source]
def get_user(username : String) #

[View source]
def get_vhost(vhost_name : String) #

[View source]
def host : String | Nil #

[View source]
def list_users #

[View source]
def list_vhosts #

[View source]
def reset_vhost(vhost_name : String, backup = false, backup_dir_name = "") #

[View source]
def set_user_tags(username : String, tags : Array(String)) #

[View source]