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