struct
ACP::Protocol::ExtRequest
- ACP::Protocol::ExtRequest
- Struct
- Value
- Object
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
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(method : String, params : JSON::Any = JSON::Any.new(nil), meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#method : String
The custom method name (without the
_prefix). -
#method=(method : String)
The custom method name (without the
_prefix). -
#params : JSON::Any
The request parameters as raw JSON.
-
#params=(params : JSON::Any)
The request parameters as raw JSON.
Constructor Detail
def self.new(method : String, params : JSON::Any = JSON::Any.new(nil), meta : Hash(String, JSON::Any) | Nil = nil)
#