Lines Matching refs:param
169 pub fn handle_capture(request: &Request<Vec<u8>>, param: &str, writer: ResponseWritable) { in handle_capture()
170 if let Err(e) = handle_capture_internal(request, param, writer) { in handle_capture()
175 fn get_id(param: &str) -> anyhow::Result<ChipIdentifier> { in get_id()
176 param in get_id()
178 .map_err(|_| anyhow!("Capture ID must be u32, found {}", param)) in get_id()
184 param: &str, in handle_capture_internal()
194 "GET" => handle_capture_get(writer, get_id(param)?), in handle_capture_internal()
196 let id = get_id(param)?; in handle_capture_internal()
214 param: String, in handle_capture_cxx()
218 if param.is_empty() { in handle_capture_cxx()
221 builder = builder.uri(format!("/v1/captures/{}", param)); in handle_capture_cxx()
233 param.as_str(), in handle_capture_cxx()