MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / encode_frame

Function encode_frame

claw-code/rust/crates/runtime/src/mcp_stdio.rs:787–792  ·  view source on GitHub ↗
(payload: &[u8])

Source from the content-addressed store, hash-verified

785}
786
787fn encode_frame(payload: &[u8]) -> Vec<u8> {
788 let header = format!("Content-Length: {}\r\n\r\n", payload.len());
789 let mut framed = header.into_bytes();
790 framed.extend_from_slice(payload);
791 framed
792}
793
794fn default_initialize_params() -> McpInitializeParams {
795 McpInitializeParams {

Callers 1

write_frameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected