/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ |
H A D | response.rs | 19 use crate::async_impl::HttpBody; 25 pub(crate) inner: Resp<HttpBody>, 29 pub(crate) fn new(response: Resp<HttpBody>) -> Self { 33 /// Reads the data of the `HttpBody`. 38 /// Reads all the message of the `HttpBody` and return it as a `String`. 55 type Target = Resp<HttpBody>;
|
H A D | http_body.rs | 34 /// `HttpBody` is the body part of the `Response` returned by `Client::request`. 35 /// `HttpBody` implements `Body` trait, so users can call related methods to get 41 /// use ylong_http_client::async_impl::{Body, Client, HttpBody, Request}; 47 /// // `HttpBody` is the body part of `response`. 65 pub struct HttpBody { structure names 72 impl HttpBody { impls 102 impl Body for HttpBody { 163 impl Drop for HttpBody { 568 use crate::async_impl::HttpBody; 572 /// UT test cases for `HttpBody [all...] |
H A D | mod.rs | 52 pub use http_body::HttpBody;
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
H A D | client.rs | 16 use super::{Body, Connector, HttpBody, HttpConnector, Request, Response}; 109 ) -> Result<Response<HttpBody>, HttpClientError> { in request() 117 ) -> Result<Response<HttpBody>, HttpClientError> { in retry_send_request() 131 ) -> Result<Response<HttpBody>, HttpClientError> { in send_request_retryable() 138 response: Response<HttpBody>, in redirect_request() 140 ) -> Result<Response<HttpBody>, HttpClientError> { in redirect_request() 163 ) -> Result<Response<HttpBody>, HttpClientError> { in send_request_with_uri()
|
H A D | http_body.rs | 23 /// `HttpBody` is the body part of the `Response` returned by `Client::request`. 24 /// `HttpBody` implements `Body` trait, so users can call related methods to get 30 /// use ylong_http_client::sync_impl::{Body, Client, EmptyBody, HttpBody, Request}; 34 /// // `HttpBody` is the body part of `response`. 48 pub struct HttpBody { structure names 54 impl HttpBody { impls 95 impl Body for HttpBody { 323 use crate::sync_impl::{Body, HttpBody}; 325 /// UT test cases for `HttpBody::empty`. 328 /// 1. Creates a `HttpBody` b [all...] |
H A D | mod.rs | 38 pub use http_body::HttpBody;
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/conn/ |
H A D | mod.rs | 18 use crate::sync_impl::HttpBody; 31 ) -> Result<Response<HttpBody>, HttpClientError>
|
H A D | http1.rs | 23 use crate::sync_impl::HttpBody; 31 ) -> Result<Response<HttpBody>, HttpClientError> 114 (true, None, _) => HttpBody::chunk(pre, Box::new(conn), is_trailer), 115 (false, Some(len), _) => HttpBody::text(len, pre, Box::new(conn)), 116 (false, None, true) => HttpBody::empty(),
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/interceptor/ |
H A D | mod.rs | 20 use crate::async_impl::{HttpBody, Request, Response}; 128 _response: &HttpResp<HttpBody>, in intercept_redirect_response()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/ |
H A D | http1.rs | 29 use crate::async_impl::{HttpBody, Request, Response}; 217 let body = HttpBody::new(message.interceptor, length, Box::new(conn), pre)?; in decode_response()
|
H A D | http3.rs | 32 use crate::async_impl::{HttpBody, Response}; 145 let body = HttpBody::new(message.interceptor, length, Box::new(data_io), &[0u8; 0])?; in frame_2_response()
|
H A D | http2.rs | 31 use crate::async_impl::{HttpBody, Response}; 126 let body = HttpBody::new(message.interceptor, length, Box::new(text_io), &[0u8; 0])?; in frame_2_response()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/downloader/ |
H A D | mod.rs | 57 /// # use ylong_http_client::async_impl::{Downloader, HttpBody, Response}; 70 /// # use ylong_http_client::async_impl::{Downloader, DownloadOperator, HttpBody, Response}; 122 /// # use ylong_http_client::async_impl::{Downloader, HttpBody, Response}; 157 /// # use ylong_http_client::async_impl::{Downloader, HttpBody, Response}; 263 use crate::async_impl::{Downloader, HttpBody, Response as adpater_resp}; 301 let chunk = HttpBody::new(
|
/commonlibrary/rust/ylong_http/ylong_http_client/tests/ |
H A D | sdv_async_http2.rs | 24 use hyper::body::HttpBody;
|