[−][src]Struct qiniu_http::Request
HTTP 请求
封装 HTTP 请求相关字段
Implementations
impl<'b> Request<'b>
[src]
pub fn headers(&self) -> &Headers<'b>
[src]
请求 HTTP Headers
pub fn body(&self) -> &Body<'b>
[src]
请求体
pub fn resolved_socket_addrs(&self) -> &Cow<'b, [SocketAddr]>
[src]
预解析的服务器套接字地址
impl<'b> Request<'b>
[src]
pub fn method(&self) -> Method
[src]
请求 HTTP 方法
pub fn follow_redirection(&self) -> bool
[src]
是否自动跟踪重定向
pub fn custom_data(&self) -> *mut c_void
[src]
自定义数据指针
pub fn on_uploading_progress(&self) -> Option<ProgressCallback<'b>>
[src]
上传进度回调闭包
pub fn on_downloading_progress(&self) -> Option<ProgressCallback<'b>>
[src]
下载进度回调闭包
pub fn connect_timeout(&self) -> Duration
[src]
连接超时时长
pub fn request_timeout(&self) -> Duration
[src]
请求超时时长
pub fn tcp_keepalive_idle_timeout(&self) -> Duration
[src]
TCP KeepAlive 空闲时长
pub fn tcp_keepalive_probe_interval(&self) -> Duration
[src]
TCP KeepAlive 探测包的发送间隔
pub fn low_transfer_speed(&self) -> u32
[src]
最低传输速度
与 low_transfer_speed_timeout
配合使用。
当 HTTP 传输速度低于最低传输速度 low_transfer_speed_timeout
并维持超过 low_transfer_speed
的时长,则出错。
SDK 应该重试,或出错退出
pub fn low_transfer_speed_timeout(&self) -> Duration
[src]
最低传输速度维持时长
impl<'b> Request<'b>
[src]
pub fn url_mut(&mut self) -> &mut URL<'b>
[src]
请求 URL
pub fn method_mut(&mut self) -> &mut Method
[src]
请求 HTTP 方法
pub fn headers_mut(&mut self) -> &mut Headers<'b>
[src]
请求 HTTP Headers
pub fn body_mut(&mut self) -> &mut Body<'b>
[src]
请求体
pub fn user_agent_mut(&mut self) -> &mut Cow<'b, str>
[src]
用户代理
pub fn follow_redirection_mut(&mut self) -> &mut bool
[src]
是否自动跟踪重定向
pub fn resolved_socket_addrs_mut(&mut self) -> &mut Cow<'b, [SocketAddr]>
[src]
预解析的服务器套接字地址
pub fn custom_data_mut(&mut self) -> &mut *mut c_void
[src]
自定义数据指针
pub fn on_uploading_progress_mut(&mut self) -> &mut Option<ProgressCallback<'b>>
[src]
上传进度回调闭包
pub fn on_downloading_progress_mut(
&mut self
) -> &mut Option<ProgressCallback<'b>>
[src]
&mut self
) -> &mut Option<ProgressCallback<'b>>
下载进度回调闭包
pub fn connect_timeout_mut(&mut self) -> &mut Duration
[src]
连接超时时长
pub fn request_timeout_mut(&mut self) -> &mut Duration
[src]
请求超时时长
pub fn tcp_keepalive_idle_timeout_mut(&mut self) -> &mut Duration
[src]
TCP KeepAlive 空闲时长
pub fn tcp_keepalive_probe_interval_mut(&mut self) -> &mut Duration
[src]
TCP KeepAlive 探测包的发送间隔
pub fn low_transfer_speed_mut(&mut self) -> &mut u32
[src]
最低传输速度
与 low_transfer_speed_timeout
配合使用。
当 HTTP 传输速度低于最低传输速度 low_transfer_speed_timeout
并维持超过 low_transfer_speed
的时长,则出错。
SDK 应该重试,或出错退出
pub fn low_transfer_speed_timeout_mut(&mut self) -> &mut Duration
[src]
最低传输速度维持时长
impl<'b> Request<'b>
[src]
Trait Implementations
Auto Trait Implementations
impl<'b> !RefUnwindSafe for Request<'b>
impl<'b> !Send for Request<'b>
impl<'b> !Sync for Request<'b>
impl<'b> Unpin for Request<'b>
impl<'b> !UnwindSafe for Request<'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,