Home
last modified time | relevance | path

Searched refs:HttpBody (Results 1 - 14 of 14) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dresponse.rs19 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 Dhttp_body.rs34 /// `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 Dmod.rs52 pub use http_body::HttpBody;
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dclient.rs16 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 Dhttp_body.rs23 /// `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 Dmod.rs38 pub use http_body::HttpBody;
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/conn/
H A Dmod.rs18 use crate::sync_impl::HttpBody;
31 ) -> Result<Response<HttpBody>, HttpClientError>
H A Dhttp1.rs23 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 Dmod.rs20 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 Dhttp1.rs29 use crate::async_impl::{HttpBody, Request, Response};
217 let body = HttpBody::new(message.interceptor, length, Box::new(conn), pre)?; in decode_response()
H A Dhttp3.rs32 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 Dhttp2.rs31 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 Dmod.rs57 /// # 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 Dsdv_async_http2.rs24 use hyper::body::HttpBody;

Completed in 6 milliseconds