package forester

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module LspEio.HeaderSource

See https://microsoft.github.io/language-server-protocol/specifications/specification-current/#headerPart

Sourcetype t = {
  1. content_length : int;
  2. content_type : string;
}
Sourceval empty : t
Sourceval create : content_length:int -> t
Sourceval is_content_length : string -> bool
Sourceval is_content_type : string -> bool
Sourcetype header_error =
  1. | InvalidHeader of string
  2. | InvalidContentLength of string
Sourceexception HeaderError of header_error
Sourceval parse_header : string -> t -> t
Sourceval read : io -> t

Read the header section of an LSP message.

Sourceval write : io -> t -> unit

Write out the header section of an LSP message.

OCaml

Innovation. Community. Security.