Struct br_web_server::request::Request
source · pub struct Request {
pub config: Config,
pub protocol: Protocol,
pub method: Method,
pub uri: Uri,
pub header: Header,
pub body: Body,
pub handle_time: f64,
pub datetime: String,
pub client_ip: String,
pub upgrade: Upgrade,
pub connection: Connection,
/* private fields */
}
Expand description
请求体
Fields§
§config: Config
§protocol: Protocol
协议版本
method: Method
当前请求类型
uri: Uri
资源标识符
header: Header
header信息
body: Body
请求体
handle_time: f64
处理时间 ms 毫秒
datetime: String
请求时间
client_ip: String
客户端IP
upgrade: Upgrade
升级协议
connection: Connection
连接的持久性
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)