/commonlibrary/rust/ylong_http/ylong_http_client/src/util/ |
D | base64.rs | 16 pub(crate) fn encode(input: &[u8]) -> Vec<u8> { in encode() function 52 use crate::util::base64::encode; 62 assert_eq!(encode(b"this is an example"), b"dGhpcyBpcyBhbiBleGFtcGxl"); in ut_util_base64_encode() 63 assert_eq!(encode(b"hello"), b"aGVsbG8="); in ut_util_base64_encode() 64 assert_eq!(encode(b""), b""); in ut_util_base64_encode() 65 assert_eq!(encode(b"a"), b"YQ=="); in ut_util_base64_encode() 66 assert_eq!(encode(b"ab"), b"YWI="); in ut_util_base64_encode() 67 assert_eq!(encode(b"abc"), b"YWJj"); in ut_util_base64_encode()
|
D | proxy.rs | 23 use crate::util::base64::encode; 78 let auth = encode(format!("{username}:{password}").as_bytes()); in basic_auth()
|
D | dispatcher.rs | 1379 .encode(&mut buf[remain_size..]) in write_frame_to_io()
|
/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/ |
D | encoder.rs | 64 pub(crate) fn encode(&mut self, dst: &mut [u8]) -> usize { in encode() method 75 match state.encode(&mut dst[cur..]) { in encode() 91 Some(TableIndex::Header(index)) => Indexed::new(index).encode(&mut dst[cur..]), in encode() 95 Indexing::new(index, v.into_bytes(), false).encode(&mut dst[cur..]) in encode() 101 .encode(&mut dst[cur..]) in encode() 222 pub(crate) fn encode(self, dst: &mut [u8]) -> Result<usize, Self> { in encode() method 224 Self::Indexed(s) => s.encode(dst), in encode() 225 Self::Indexing(s) => s.encode(dst), in encode() 226 Self::IndexingWithName(s) => s.encode(dst), in encode() 227 Self::WithoutIndexing(s) => s.encode(dst), in encode() [all …]
|
/commonlibrary/rust/ylong_http/ylong_http/src/h1/request/ |
D | encoder.rs | 248 pub fn encode(&mut self, dst: &mut [u8]) -> Result<usize, HttpError> { in encode() method 309 match self.method_part.encode(dst)? { in method_encode() 322 match self.method_sp_part.encode(dst)? { in method_sp_encode() 336 match self.uri_part.encode(dst)? { in uri_encode() 349 match self.uri_sp_part.encode(dst)? { in uri_sp_encode() 362 match self.version_part.encode(dst)? { in version_encode() 375 match self.version_crlf_part.encode(dst)? { in version_crlf_encode() 388 match self.headers_part.encode(dst)? { in header_encode() 401 match self.headers_crlf_part.encode(dst)? { in header_crlf_encode() 427 fn encode(&mut self, buf: &mut [u8]) -> TokenResult<usize> { in encode() method [all …]
|
/commonlibrary/ets_utils/js_api_module/buffer/ |
D | js_buffer.cpp | 81 EncodingType Buffer::GetEncodingType(string encode) in GetEncodingType() argument 83 if (encode == "hex") { in GetEncodingType() 85 } else if (encode == "base64url") { in GetEncodingType() 87 } else if (encode == "ascii") { in GetEncodingType() 89 } else if (encode == "base64") { in GetEncodingType() 91 } else if (encode == "latin1") { in GetEncodingType() 93 } else if (encode == "binary") { in GetEncodingType() 95 } else if (encode == "utf16le") { in GetEncodingType()
|
/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/ |
D | encoder.rs | 43 pub(crate) fn encode(&mut self, dst: &mut [u8]) -> usize { in encode() method 46 let size = encoder.encode(dst); in encode() 81 cur += _encoder.encode(&mut vec[cur..]); in ut_hpack_encoder()
|
/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
D | encoder.rs | 136 let payload_size = self.hpack_encoder.encode(&mut self.header_payload_buffer); in set_frame() 159 pub fn encode(&mut self, buf: &mut [u8]) -> Result<usize, FrameEncoderErr> { in encode() method 1215 let first_encoded = encoder.encode(&mut first_buf).unwrap(); in ut_data_frame_encoding() 1216 let second_encoded = encoder.encode(&mut second_buf).unwrap(); in ut_data_frame_encoding() 1258 let first_encoded = frame_encoder.encode(&mut buf).unwrap(); in ut_headers_frame_encoding() 1298 let first_encoded = encoder.encode(&mut first_buf).unwrap(); in ut_settings_frame_encoding() 1300 let second_encoded = encoder.encode(&mut second_buf).unwrap(); in ut_settings_frame_encoding() 1301 let third_encoded = encoder.encode(&mut third_buf).unwrap(); in ut_settings_frame_encoding() 1360 let first_encoded = encoder.encode(&mut first_buf).unwrap(); in ut_ping_frame_encoding() 1361 let second_encoded = encoder.encode(&mut second_buf).unwrap(); in ut_ping_frame_encoding() [all …]
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/ |
D | chunk.rs | 133 let (output_size, var) = self.encode_status.encode(src, dst); in chunk_encode() 446 let (output_size, var) = self.encode_status.encode( in chunk_encode_reader() 465 match self.trailer.encode(src.as_slice(), dst) { in trailer_encode() 522 fn encode(&mut self, src: &[u8], dst: &mut [u8]) -> (usize, Option<StatusVar>) { in encode() method 541 match self.hex.encode(dst) { in meta_size_encode() 551 match self.hex_last.encode(dst) { in meta_size_encode() 563 match self.meta_crlf.encode(dst) { in meta_crlf_encode() 574 match self.data_crlf.encode(dst) { in data_crlf_encode() 585 match self.finish_crlf.encode(dst) { in finish_encode() 657 fn encode(&mut self, buf: &mut [u8]) -> Token<usize> { in encode() method [all …]
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/encode/ |
D | multi.rs | 253 match headers_encoder.encode(dst)? { in headers_encode() 374 ( $buf: expr, $encode: block, $v_size: expr, $v_str: expr) => { 379 let len = $encode;
|
D | part.rs | 136 match self.headers_encode.encode(dst)? { in headers_encode()
|
/commonlibrary/ets_utils/js_util_module/ |
D | mozilla_docs.txt | 38 encode(input?: string): Uint8Array;
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/ |
D | http1.rs | 42 match non_body.encode(&mut buf[..]) { in request()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/conn/ |
D | http1.rs | 47 .encode(&mut buf[write..]) in request()
|
/commonlibrary/ets_utils/ |
D | README.en.md | 8 …classes:<br>**URL**: provides APIs to parse, construct, standardize, and encode URLs. The construc… 450 …encode a string into a UTF-8 byte stream. **TextDecoder**: provides APIs to decode a byte stream i… 457 │ ├── encode() # encode method 476 │ ├── encode() # encode method 578 | encode(input : string) : Uint8Array | Encodes a string into a Uint8Array typed array.| 586 …t8Array): Uint8Array; | Uses the Base64 encoding scheme to synchronously encode all bytes in a Uni… 587 … Uint8Array): string; | Uses the Base64 encoding scheme to synchronously encode a Unit8Array typed… 589 | encode(src: Uint8Array): Promise\<Uint8Array\>; | Uses the Base64 encoding scheme to asynchronous… 590 …: Promise\<string\>; | Uses the Base64 encoding scheme to asynchronously encode a Unit8Array typed… 704 2. encode() [all …]
|
D | README.md | 1287 …encode和解码decode、有理数RationalNumber。TextEncoder表示一个文本编码器,接受字符串作为输入,以UTF-8格式进行编码,输出UTF-8字节流。TextDecod… 1294 │ ├── encode() # encode方法 1313 │ ├── encode() # encode方法 1647 | encode(input : string) : Uint8Array | 输入stirng字符串,根据encodeing编码并输出uint8字节流。 | 1658 | encode(src: Uint8Array): Promise\<Uint8Array\>; | 使用Base64编码方案将指定u8数组中的所有字节异步编码到新分配的u8数组中。 | 1980 2.encode() 1984 var result = textEncoder.encode('abc'); 2091 17.encode() 2096 await that.encode(array).then(val=>{
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/ |
D | mod.rs | 21 mod encode; module 35 pub use encode::{MimeMultiEncoder, MimePartEncoder};
|
/commonlibrary/ets_utils/js_api_module/buffer/src/ |
D | js_buffer.ts | 624 let encode = encodingTypeErrorCheck(encoding); 625 return this[bufferSymbol].writeString(str, 0, this.length, encode); 642 let encode = encodingTypeErrorCheck(encoding); 643 return this[bufferSymbol].writeString(str, offset, length, encode); 654 let encode = encodingTypeErrorCheck(encoding); 656 return this[bufferSymbol].writeString(str, offset, length, encode);
|
/commonlibrary/ets_utils/js_util_module/util/src/ |
D | util_js.ts | 49 encode(src: Uint8Array): Promise<Uint8Array>; 108 encode(src: Uint8Array): Promise<Uint8Array> { method in Base64Helper 109 let result: Promise<Uint8Array> = this.base64.encode(src);
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/ |
D | headers.rs | 99 pub(crate) fn encode(&mut self, dst: &mut [u8]) -> TokenResult<usize> { in encode() method
|