Home
last modified time | relevance | path

Searched refs:ok (Results 1 - 15 of 15) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dalt_svc.rs59 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 Dredirect.rs67 .and_then(|value| value.to_string().ok())
68 .and_then(|str| Uri::try_from(str.as_bytes()).ok())
H A Dnormalizer.rs83 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 Ddispatcher.rs141 .ok() in dispatch()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/
H A Dhttp1.rs104 .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 Dhttp2.rs195 .and_then(|auth| auth.to_string().ok()); in build_pseudo_headers()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/downloader/
H A Dmod.rs171 .and_then(|v| v.to_string().ok())
172 .and_then(|v| v.parse::<u64>().ok());
/commonlibrary/ets_utils/js_api_module/buffer/
H A Dconverter.cpp56 u16string Utf8ToUtf16BE(const string &u8Str, bool *ok) in Utf8ToUtf16BE() argument
102 if (ok != nullptr) { in Utf8ToUtf16BE()
103 *ok = isOk; in Utf8ToUtf16BE()
H A Dconverter.h74 std::u16string Utf8ToUtf16BE(const std::string &u8Str, bool *ok = nullptr);
/commonlibrary/ets_utils/platform/ohos/
H A Dutil_helper.cpp174 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 Dmod.rs173 self.close(false, 0x1, b"fail").ok();
/commonlibrary/ets_utils/platform/
H A Dutil_helper.h87 std::u16string Utf8ToUtf16BE(const std::string &u8Str, bool *ok = nullptr);
/commonlibrary/rust/ylong_runtime/ylong_signal/src/
H A Dcommon.rs171 /// 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 Dmod.rs237 .and_then(|v| v.to_string().ok()); in connect()
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/
H A Dmod.rs98 path: Path::from_bytes(b"/").ok(),

Completed in 14 milliseconds