pub struct Request {Show 21 fields
pub config: Config,
pub protocol: Protocol,
pub method: Method,
pub uri: Uri,
pub header: JsonValue,
pub cookie: JsonValue,
pub body: Body,
pub authorization: Authorization,
pub handle_time: String,
pub datetime: String,
pub timestamp: i64,
pub client_ip: String,
pub proxy_ip: String,
pub server_ip: String,
pub upgrade: Upgrade,
pub connection: Connection,
pub accept_encoding: Encoding,
pub raw_data: Vec<u8>,
pub header_data: Vec<u8>,
pub body_data: Vec<u8>,
pub scheme: Arc<Mutex<Scheme>>,
/* private fields */
}
Expand description
请求体
Fields§
§config: Config
§protocol: Protocol
协议版本
method: Method
当前请求类型
uri: Uri
资源标识符
header: JsonValue
header信息
Cookie信息
body: Body
请求体
认证信息
handle_time: String
处理耗时
datetime: String
请求时间
timestamp: i64
请求时间戳
client_ip: String
客户端IP
proxy_ip: String
代理端IP
server_ip: String
服务端IP
upgrade: Upgrade
升级协议
connection: Connection
连接的持久性
accept_encoding: Encoding
编码
raw_data: Vec<u8>
原始请求数据
header_data: Vec<u8>
请求头数据
body_data: Vec<u8>
请求体数据
scheme: Arc<Mutex<Scheme>>
Implementations§
Source§impl Request
impl Request
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