Split a stream of bytes into payloads by extracting each frame based on information contained in the headers.
See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#contentPart