pub struct Request {Show 16 fields
pub config: Config,
pub protocol: Protocol,
pub method: Method,
pub uri: Uri,
pub header: BTreeMap<String, JsonValue>,
pub cookie: BTreeMap<String, JsonValue>,
pub custom: BTreeMap<String, JsonValue>,
pub body: Body,
pub authorization: Authorization,
pub handle_time: f64,
pub datetime: String,
pub client_ip: String,
pub server_ip: String,
pub upgrade: Upgrade,
pub connection: Connection,
pub accept_encoding: Encoding,
}
Expand description
请求体
Fields§
§config: Config
§protocol: Protocol
协议版本
method: Method
当前请求类型
uri: Uri
资源标识符
header: BTreeMap<String, JsonValue>
header信息
Cookie信息
custom: BTreeMap<String, JsonValue>
自定义数据
body: Body
请求体
认证信息
handle_time: f64
处理时间 ms 毫秒
datetime: String
请求时间
client_ip: String
客户端IP
server_ip: String
服务端IP
upgrade: Upgrade
升级协议
connection: Connection
连接的持久性
accept_encoding: Encoding
编码
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