pub struct Request {
pub ajax: bool,
pub host: String,
pub scheme: String,
pub agent: String,
pub referer: String,
pub ip: String,
pub method: HttpMethod,
pub path: String,
pub url: String,
pub input: Input,
pub site: String,
pub version: HttpVersion,
}
Expand description
Request parameters
§Values
ajax: bool
- Ajax query (only software detect).host: String
- Request host. Example: subdomain.domain.zone.scheme: String
- Request scheme. Example: http / https.agent: String
- HTTP_USER_AGENT.referer: String
- HTTP_REFERER.ip: String
- Client IP.method: String
- REQUEST_METHOD.path: String
- DOCUMENT_ROOT.url: String
- Request url. Example: /product/view/item/145input: Input
- Input http protocol datas.
Fields§
§ajax: bool
Ajax query (only software detect)
host: String
Request host. Example: subdomain.domain.zone
scheme: String
Request scheme. Example: http / https
agent: String
HTTP_USER_AGENT
referer: String
HTTP_REFERER
ip: String
Client IP
method: HttpMethod
REQUEST_METHOD
path: String
DOCUMENT_ROOT
url: String
Request url. Example: /product/view/item/145
input: Input
Input http protocol datas
site: String
Site name. Example: https://example.com
version: HttpVersion
Http version
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