pub struct HttpsGetResult {
pub remote_ip: [u8; 4],
pub local_port: u16,
pub tls_version: String,
pub cipher_suite: String,
pub cert_subject: String,
pub cert_issuer: String,
pub cert_not_after: String,
pub status_code: u16,
pub reason: String,
pub headers: BTreeMap<String, String>,
pub body: String,
pub body_bytes: Vec<u8>,
}Fields§
§remote_ip: [u8; 4]§local_port: u16§tls_version: String§cipher_suite: String§cert_subject: String§cert_issuer: String§cert_not_after: String§status_code: u16§reason: String§headers: BTreeMap<String, String>§body: String§body_bytes: Vec<u8>ボディの生バイト列(body は表示/JSON解析用の lossy String だが、
画像/zip 等のバイナリダウンロードはここを使う)。
Auto Trait Implementations§
impl Freeze for HttpsGetResult
impl RefUnwindSafe for HttpsGetResult
impl Send for HttpsGetResult
impl Sync for HttpsGetResult
impl Unpin for HttpsGetResult
impl UnsafeUnpin for HttpsGetResult
impl UnwindSafe for HttpsGetResult
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