struct ACP::Protocol::ExtRequest

Overview

Allows for sending an arbitrary request that is not part of the ACP spec. The #method field is the custom method name WITHOUT the _ prefix (the prefix is added automatically on the wire).

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(method : String, params : JSON::Any = JSON::Any.new(nil), meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def method : String #

The custom method name (without the _ prefix).


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

The custom method name (without the _ prefix).


[View source]
def params : JSON::Any #

The request parameters as raw JSON.


[View source]
def params=(params : JSON::Any) #

The request parameters as raw JSON.


[View source]