module

Heucristic::Protocol::Encoder

Constants

CONTENT_MODIFIED = -32801
INTERNAL_ERROR = -32603
INVALID_PARAMS = -32602
INVALID_REQUEST = -32600
METHOD_NOT_FOUND = -32601
PARSE_ERROR = -32700

Instance methods

error(id : Id | Nil, code : Int32, message : String) : String
Source
notification(method : Method, params : T) : String forall T
Source
notification(method : String, params : T) : String forall T
Source
request(id : Id, method : Method, params : T) : String forall T
Source
request(id : Id, method : String, params : T) : String forall T
Source
result(id : Id, result : T) : String forall T
Source