module LSP::Codec
Defined in:
lsp/codec.crClass Method Summary
-
.read_message(io : IO, outstanding = {} of String | Int64 => Message::AnyRequest) : Message::Any
Read a message using the LSP wire format, including headers.
-
.write_message(io : IO, message : Message::Any, outstanding = {} of String | Int64 => Message::AnyRequest)
Write a message using the LSP wire format, including headers.
Class Method Detail
def self.read_message(io : IO, outstanding = {} of String | Int64 => Message::AnyRequest) : Message::Any
#
Read a message using the LSP wire format, including headers. Silently swallows malformed lines/messages that get in the way. Raises IO::EOFError when the IO is out of data to be read.
def self.write_message(io : IO, message : Message::Any, outstanding = {} of String | Int64 => Message::AnyRequest)
#
Write a message using the LSP wire format, including headers.