/commonlibrary/rust/ylong_http/ylong_http_client/tests/ |
H A D | sdv_async_http.rs | 43 Body: "Hello!", in sdv_async_client_send_request() 49 Body: "Hi!", in sdv_async_client_send_request() 62 Body: "Hello!", in sdv_async_client_send_request() 67 Body: "", in sdv_async_client_send_request() 80 Body: "Hello!", in sdv_async_client_send_request() 86 Body: "Hi!", in sdv_async_client_send_request() 98 Body: "", in sdv_async_client_send_request() 103 Body: "", in sdv_async_client_send_request() 116 Body: "Hello!", in sdv_async_client_send_request() 122 Body in sdv_async_client_send_request() [all...] |
H A D | sdv_async_http_on_tcp.rs | 42 Body: "Hello!", in sdv_async_client_send_request() 48 Body: "Hi!", in sdv_async_client_send_request() 60 Body: "Hello!", in sdv_async_client_send_request() 65 Body: "", in sdv_async_client_send_request() 77 Body: "Hello!", in sdv_async_client_send_request() 83 Body: "Hi!", in sdv_async_client_send_request() 95 Body: "Hello!", in sdv_async_client_send_request() 101 Body: "Hi!", in sdv_async_client_send_request() 113 Body: "Hello!", in sdv_async_client_send_request() 119 Body in sdv_async_client_send_request() [all...] |
H A D | sdv_async_https_c_ssl.rs | 45 Body: "Hello!", in sdv_async_client_send_request() 51 Body: "Hi!", in sdv_async_client_send_request() 65 Body: "Hello!", in sdv_async_client_send_request() 70 Body: "", in sdv_async_client_send_request() 84 Body: "Hello!", in sdv_async_client_send_request() 90 Body: "Hi!", in sdv_async_client_send_request() 103 Body: "", in sdv_async_client_send_request() 108 Body: "", in sdv_async_client_send_request() 122 Body: "Hello!", in sdv_async_client_send_request() 128 Body in sdv_async_client_send_request() [all...] |
H A D | sdv_sync_http_on_tcp.rs | 19 use ylong_http_client::sync_impl::Body; 41 Body: "Hello!", in sdv_synchronized_client_send_request_to_tcp() 47 Body: "Hi!", in sdv_synchronized_client_send_request_to_tcp() 69 Body: "Hello!", in sdv_synchronized_client_send_request_repeatedly_to_tcp() 75 Body: "METHOD GET!", in sdv_synchronized_client_send_request_repeatedly_to_tcp() 81 Body: "Hello!", in sdv_synchronized_client_send_request_repeatedly_to_tcp() 87 Body: "METHOD POST!", in sdv_synchronized_client_send_request_repeatedly_to_tcp() 109 Body: "Hello!", in sdv_client_making_multiple_connections() 115 Body: "METHOD GET!", in sdv_client_making_multiple_connections()
|
H A D | sdv_sync_http.rs | 21 use ylong_http_client::sync_impl::Body; 44 Body: "Hello!", in sdv_synchronized_client_send_request() 50 Body: "Hi!", in sdv_synchronized_client_send_request() 73 Body: "Hello!", in sdv_synchronized_client_send_request_repeatedly() 79 Body: "METHOD GET!", in sdv_synchronized_client_send_request_repeatedly() 85 Body: "Hello!", in sdv_synchronized_client_send_request_repeatedly() 91 Body: "METHOD POST!", in sdv_synchronized_client_send_request_repeatedly()
|
H A D | sdv_sync_https_c_ssl.rs | 23 use ylong_http_client::sync_impl::Body; 45 Body: "Hello!", in sdv_synchronized_client_send_request() 51 Body: "Hi!", in sdv_synchronized_client_send_request() 70 Body: "Hello!", in sdv_synchronized_client_send_request_repeatedly() 76 Body: "METHOD GET!", in sdv_synchronized_client_send_request_repeatedly() 82 Body: "Hello!", in sdv_synchronized_client_send_request_repeatedly() 88 Body: "METHOD POST!", in sdv_synchronized_client_send_request_repeatedly()
|
H A D | sdv_async_https_pinning.rs | 49 Body: "hello", in sdv_client_public_key_pinning() 55 Body: "hi!", in sdv_client_public_key_pinning() 97 Body: "hello", in sdv_client_public_key_pinning() 103 Body: "hi!", in sdv_client_public_key_pinning() 146 Body: "hello", in sdv_client_public_key_pinning() 152 Body: "hi!", in sdv_client_public_key_pinning() 195 Body: "hello", in sdv_client_public_key_pinning() 201 Body: "hi!", in sdv_client_public_key_pinning() 230 Body: "hello", in sdv_client_public_key_pinning_error() 236 Body in sdv_client_public_key_pinning_error() [all...] |
H A D | sdv_async_custom_dns_resolver.rs | 48 Body: "Hello!", in sdv_client_custom_dns_resolver() 54 Body: "Hi!", in sdv_client_custom_dns_resolver() 73 Body: "Hello!", in sdv_client_custom_dns_resolver() 79 Body: "Hi!", in sdv_client_custom_dns_resolver()
|
H A D | sdv_async_http_client_error.rs | 30 assert_eq!(ErrorKind::BodyDecode.as_str(), "Body Decode Error"); in sdv_client_error_kind() 31 assert_eq!(ErrorKind::BodyTransfer.as_str(), "Body Transfer Error"); in sdv_client_error_kind() 73 Body: "", in sdv_err_start_connect_timeout() 110 Body: "HELLO", in sdv_err_req_timeout() 116 Body: "HI", in sdv_err_req_timeout() 133 Body: "HELLO", in sdv_err_req_timeout() 187 Body: "HELLO", in sdv_err_redirect_wrong_location() 194 Body: "HI", in sdv_err_redirect_wrong_location() 210 Body: "HELLO", in sdv_err_redirect_wrong_location() 252 Body in sdv_err_response_with_wrong_body_length() [all...] |
H A D | sdv_async_http_proxy.rs | 19 use ylong_http::body::async_impl::Body; 48 Body: "Hello!", in sdv_async_client_send_request() 54 Body: "METHOD GET!", in sdv_async_client_send_request() 78 Body: "Hello!", in sdv_async_client_send_request()
|
H A D | sdv_async_http_body_io.rs | 19 use ylong_http::body::async_impl::Body; 48 Body: "HELLO", in sdv_body_chunk_and_trailer() 55 Body: "\ in sdv_body_chunk_and_trailer() 74 Body: "HELLO", in sdv_body_chunk_and_trailer()
|
H A D | sdv_async_http2.rs | 26 use ylong_http::body::async_impl::Body as RespBody; 28 use ylong_http_client::async_impl::{Body, Client, Request}; 44 req: hyper::Request<hyper::Body>, 45 ) -> Result<hyper::Response<hyper::Body>, Infallible> { 82 .body(hyper::Body::from(body_data)) 179 .body(Body::slice(body_date)) in sdv_async_h2_client_send_request() 259 .body(Body::slice(body_date)) in sdv_async_h2_client_send_request_concurrently()
|
/commonlibrary/rust/ylong_http/ylong_http_client/tests/common/ |
H A D | async_utils.rs | 28 Body: $req_body: expr, 36 Body: $resp_body: expr, 48 Body: $req_body, 56 Body: $resp_body, 90 Body: $req_body, 98 Body: $resp_body, 117 Body: $req_body: expr, 125 Body: $resp_body: expr, 137 Body: $req_body, 145 Body [all...] |
H A D | sync_utils.rs | 27 Body: $req_body: expr, 35 Body: $resp_body: expr, 47 Body: $req_body, 55 Body: $resp_body, 89 Body: $req_body, 97 Body: $resp_body, 115 Body: $req_body: expr, 123 Body: $resp_body: expr, 135 Body: $req_body, 143 Body [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/tests/tcp_server/ |
H A D | async_utils.rs | 26 Body: $req_body: expr, 34 Body: $resp_body: expr, 58 Body: $req_body, 66 Body: $resp_body, 83 Body: $req_body, 91 Body: $resp_body, 116 Body: $req_body: expr, 124 Body: $resp_body: expr, 143 Body: $req_body, 151 Body [all...] |
H A D | sync_utils.rs | 25 Body: $req_body: expr, 33 Body: $resp_body: expr, 54 Body: $req_body, 62 Body: $resp_body, 78 Body: $req_body, 86 Body: $resp_body, 110 Body: $req_body: expr, 118 Body: $resp_body: expr, 136 Body: $req_body, 144 Body [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ |
H A D | request.rs | 43 /// use ylong_http_client::async_impl::{Body, Request}; 45 /// let request = Request::builder().body(Body::empty()); 48 pub(crate) inner: Req<Body>, 74 type Target = Req<Body>; 92 /// use ylong_http_client::async_impl::{Body, RequestBuilder}; 99 /// .body(Body::empty()); 200 /// use ylong_http_client::async_impl::{Body, RequestBuilder}; 202 /// let request = RequestBuilder::new().body(Body::empty()); 204 pub fn body(self, body: Body) -> Result<Request, HttpClientError> { in body() 248 /// use ylong_http_client::async_impl::Body; 252 pub struct Body { global() structure names 263 impl Body { global() impls 339 impl Body { global() impls [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/body/ |
H A D | mod.rs | 32 //! # Various Body Types 58 /// Synchronous `Body` trait definition. 65 /// The `sync_impl::Body` trait allows for reading body data synchronously. 69 /// [`TextBody`] implements `sync_impl::Body`: 72 /// use ylong_http::body::sync_impl::Body; 99 pub trait Body { traits 104 /// were read. Body data will be written into buf as much as possible. 126 /// [`TextBody`] implements `sync_impl::Body`: 129 /// use ylong_http::body::sync_impl::Body; 164 impl<T: Read> Body fo 220 pub trait Body: Unpin + Sized { global() traits [all...] |
H A D | text.rs | 42 /// This type of `TextBody` implements both [`sync_impl::Body`] and 43 /// [`async_impl::Body`]. 59 /// This type of `TextBody` **only** implements [`sync_impl::Body`]. 77 /// This type of `TextBody` **only** implements [`async_impl::Body`]. 79 /// # Read Body Content 82 /// [`sync_impl::Body`] or [`async_impl::Body`] to read data, like the examples 88 /// use ylong_http::body::sync_impl::Body; 107 /// use ylong_http::body::async_impl::Body; 125 /// [`sync_impl::Body`] [all...] |
H A D | empty.rs | 22 /// `EmptyBody` both implements [`sync_impl::Body`] and [`async_impl::Body`]. 23 /// Using [`sync_impl::Body::data`] method or [`async_impl::Body::data`] method 26 /// [`sync_impl::Body`]: sync_impl::Body 27 /// [`async_impl::Body`]: async_impl::Body 28 /// [`sync_impl::Body::data`]: sync_impl::Body [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/conn/ |
H A D | mod.rs | 16 use super::{Body, Request, Response}; 33 T: Body,
|
/commonlibrary/rust/ylong_http/ylong_http/tests/ |
H A D | sdv_http_body.rs | 58 use ylong_http::body::sync_impl::Body as SyncBody; in sdv_chunk_body_encode() 77 /// 2. Encodes chunk body by calling `async_impl::Body::data` 90 size = async_impl::Body::data(&mut task, buf.as_mut_slice()) in sdv_async_chunk_body_from_async_reader() 104 /// 2. Encodes chunk body by calling `async_impl::Body::data` 117 size = async_impl::Body::data(&mut task, buf.as_mut_slice()) in sdv_async_chunk_body_from_bytes() 135 use ylong_http::body::sync_impl::Body as SyncBody; in sdv_chunk_body_encode_trailer_0() 203 /// SDV test cases for `async_impl::Body::data` of `EmptyBody`. 207 /// 2. Calls its `async_impl::Body::data` method and then checks the results. 211 use ylong_http::body::async_impl::Body as AsyncBody; in sdv_empty_body_async_impl_data()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
H A D | client.rs | 16 use super::{Body, Connector, HttpBody, HttpConnector, Request, Response}; 106 pub fn request<T: Body>( in request() 114 fn retry_send_request<T: Body>( in retry_send_request() 128 fn send_request_retryable<T: Body>( in send_request_retryable() 136 fn redirect_request<T: Body>( in redirect_request() 159 fn send_request_with_uri<T: Body>( in send_request_with_uri()
|
/commonlibrary/rust/ylong_http/ylong_http_client/examples/ |
H A D | async_http_multi.rs | 18 use ylong_http_client::async_impl::{Body, Client, Downloader, Request}; 28 .body(Body::empty()) in main()
|
H A D | async_http.rs | 18 use ylong_http_client::async_impl::{Body, Client, Downloader, Request}; 37 .body(Body::empty())?;
|