MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / parse_port

Function parse_port

packages/server/src/main/http.rs:113–117  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

111}
112
113fn parse_port(value: &str) -> anyhow::Result<u16> {
114 value
115 .parse::<u16>()
116 .with_context(|| format!("parse port `{value}`"))
117}
118
119fn parse_http_response(response: &[u8]) -> anyhow::Result<(u16, HttpHeaders, &[u8])> {
120 let header_end = response

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected