Struct br_web_server::request::Request
source · pub struct Request {Show 14 fields
pub config: Config,
pub protocol: Protocol,
pub method: Method,
pub uri: Uri,
pub header: HashMap<&'static str, &'static str>,
pub cookie: HashMap<&'static str, &'static str>,
pub body: Body,
pub authorization: Authorization,
pub handle_time: f64,
pub datetime: String,
pub client_ip: &'static str,
pub server_ip: &'static str,
pub upgrade: Upgrade,
pub connection: Connection,
}
Expand description
请求体
Fields§
§config: Config
§protocol: Protocol
协议版本
method: Method
当前请求类型
uri: Uri
资源标识符
header: HashMap<&'static str, &'static str>
header信息
Cookie信息
body: Body
请求体
认证信息
handle_time: f64
处理时间 ms 毫秒
datetime: String
请求时间
client_ip: &'static str
客户端IP
server_ip: &'static str
服务端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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)