MCPcopy Create free account
hub / github.com/concensure/Semantic / write_message

Method write_message

semantic_rust/src/rust_analyzer.rs:181–186  ·  view source on GitHub ↗
(&mut self, payload: &Value)

Source from the content-addressed store, hash-verified

179 }
180
181 fn write_message(&mut self, payload: &Value) -> Result<()> {
182 let body = payload.to_string();
183 write!(self.stdin, "Content-Length: {}\r\n\r\n{}", body.len(), body)?;
184 self.stdin.flush()?;
185 Ok(())
186 }
187
188 fn read_message(&mut self) -> Result<Value> {
189 let mut content_length = None::<usize>;

Callers 2

requestMethod · 0.80
notifyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected