module LSP::MessageParser

Overview

This module is responsible for parsing HTTP like requests from an IO.

Extended Modules

Defined in:

lsp/message_parser.cr

Class Method Summary

Class Method Detail

def self.parse(io : IO, &) #

Parses a message (header + contents) from a given IO and yields the contents.


[View source]
def self.read_header(io : IO) : Header | Nil #

Reads a header from the given IO.


[View source]
def self.read_headers(io : IO) : Array(Header) #

Reads the headers from the given IO.


[View source]