MCPcopy Create free account
hub / github.com/619dev/minghe / is_request

Function is_request

src/sip/parser.rs:580–586  ·  view source on GitHub ↗

判断消息是否为 SIP 请求

(msg: &str)

Source from the content-addressed store, hash-verified

578 if content_length.is_some_and(|existing| existing != parsed) {
579 return SipFrameResult::Invalid;
580 }
581 content_length = Some(parsed);
582 }
583 }
584
585 let Some(total_length) = headers_with_separator.checked_add(content_length.unwrap_or(0)) else {
586 return SipFrameResult::Invalid;
587 };
588
589 // 检查缓冲区中是否有足够的数据

Callers 1

process_sip_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected