pub struct Request {
pub config: JsonValue,
pub method: Method,
pub url: String,
pub paths: Vec<String>,
pub query: JsonValue,
pub header: JsonValue,
pub cookie: JsonValue,
pub custom: JsonValue,
pub body: JsonValue,
pub client_ip: String,
pub server_ip: String,
pub request_time: f64,
}Fields§
§config: JsonValue配置参数
method: Method当前请求类型
url: String请求地址
paths: Vec<String>§query: JsonValue地址参数
header: JsonValueheader信息
Cookie信息
custom: JsonValue自定义数据
body: JsonValue请求体
client_ip: String客户端IP
server_ip: String服务器IP
request_time: f64请求时间
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