pub struct AppHttpResponse {
pub remote_ip: [u8; 4],
pub local_port: u16,
pub status_code: u16,
pub reason: String,
pub headers: BTreeMap<String, String>,
pub body: String,
pub body_bytes: Vec<u8>,
pub tls: Option<TlsSessionMeta>,
}Fields§
§remote_ip: [u8; 4]§local_port: u16§status_code: u16§reason: String§headers: BTreeMap<String, String>§body: String§body_bytes: Vec<u8>ボディの生バイト列(バイナリ応答。body は lossy な文字列)。
tls: Option<TlsSessionMeta>Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppHttpResponse
impl RefUnwindSafe for AppHttpResponse
impl Send for AppHttpResponse
impl Sync for AppHttpResponse
impl Unpin for AppHttpResponse
impl UnsafeUnpin for AppHttpResponse
impl UnwindSafe for AppHttpResponse
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