Searched refs:ok (Results 1 - 15 of 15) sorted by relevance
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/ |
H A D | alt_svc.rs | 59 let http_version = words.next()?.try_into().ok()?; in parse_alt_svc() 66 Port::from_str(str::from_utf8(&host_port[1..]).ok()?).ok()?, in parse_alt_svc() 70 Some(Host::from_str(str::from_utf8(&host_port[..index]).ok()?).ok()?), in parse_alt_svc() 71 Port::from_str(str::from_utf8(&host_port[(index + 1)..]).ok()?).ok()?, in parse_alt_svc() 78 let para = str::from_utf8(para).ok()?.trim().as_bytes(); in parse_alt_svc() 83 let para = str::from_utf8(para_it.next()?).ok()?; in parse_alt_svc() 84 seconds = para.parse::<u64>().ok() in parse_alt_svc() [all...] |
H A D | redirect.rs | 67 .and_then(|value| value.to_string().ok()) 68 .and_then(|str| Uri::try_from(str.as_bytes()).ok())
|
H A D | normalizer.rs | 83 if let Some(req_port) = uri.port().and_then(|port| port.as_u16().ok()) { 148 .and_then(|v| v.to_string().ok()) 164 .and_then(|v| v.to_string().ok()) 165 .and_then(|s| s.parse::<u64>().ok());
|
H A D | dispatcher.rs | 141 .ok() in dispatch()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/ |
H A D | http1.rs | 104 .and_then(|v| v.to_string().ok()) 105 .and_then(|v| v.parse::<u64>().ok()) 112 .and_then(|v| v.to_string().ok()) 192 .ok() in decode_response() 200 .ok() in decode_response()
|
H A D | http2.rs | 195 .and_then(|auth| auth.to_string().ok()); in build_pseudo_headers()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/downloader/ |
H A D | mod.rs | 171 .and_then(|v| v.to_string().ok()) 172 .and_then(|v| v.parse::<u64>().ok());
|
/commonlibrary/ets_utils/js_api_module/buffer/ |
H A D | converter.cpp | 56 u16string Utf8ToUtf16BE(const string &u8Str, bool *ok) in Utf8ToUtf16BE() argument 102 if (ok != nullptr) { in Utf8ToUtf16BE() 103 *ok = isOk; in Utf8ToUtf16BE()
|
H A D | converter.h | 74 std::u16string Utf8ToUtf16BE(const std::string &u8Str, bool *ok = nullptr);
|
/commonlibrary/ets_utils/platform/ohos/ |
H A D | util_helper.cpp | 174 std::u16string Utf8ToUtf16BE(const std::string &u8Str, bool *ok) in Utf8ToUtf16BE() argument 225 if (ok != nullptr) { in Utf8ToUtf16BE() 226 *ok = isOk; in Utf8ToUtf16BE()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/quic/ |
H A D | mod.rs | 173 self.close(false, 0x1, b"fail").ok();
|
/commonlibrary/ets_utils/platform/ |
H A D | util_helper.h | 87 std::u16string Utf8ToUtf16BE(const std::string &u8Str, bool *ok = nullptr);
|
/commonlibrary/rust/ylong_runtime/ylong_signal/src/ |
H A D | common.rs | 171 /// 6. Deregisters both signal's handler hook, checks if the return is ok.
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/connector/ |
H A D | mod.rs | 237 .and_then(|v| v.to_string().ok()); in connect()
|
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | mod.rs | 98 path: Path::from_bytes(b"/").ok(),
|
Completed in 11 milliseconds