pub struct HttpResponseProxy {
pub status_code: u16,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}Expand description
HTTP 响应代理。
Fields§
§status_code: u16状态码
headers: Vec<(String, String)>响应头
body: Vec<u8>响应体字节
Implementations§
Source§impl HttpResponseProxy
impl HttpResponseProxy
Sourcepub fn extract_file_name_from_content_string(
content: &str,
) -> Result<String, WxErrorException>
pub fn extract_file_name_from_content_string( content: &str, ) -> Result<String, WxErrorException>
Trait Implementations§
Source§impl Clone for HttpResponseProxy
impl Clone for HttpResponseProxy
Source§fn clone(&self) -> HttpResponseProxy
fn clone(&self) -> HttpResponseProxy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpResponseProxy
impl RefUnwindSafe for HttpResponseProxy
impl Send for HttpResponseProxy
impl Sync for HttpResponseProxy
impl Unpin for HttpResponseProxy
impl UnsafeUnpin for HttpResponseProxy
impl UnwindSafe for HttpResponseProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more