pub struct Request {
pub method: String,
pub url: String,
pub http: String,
pub cookie: HashMap<String, String>,
pub add_content: HashMap<String, String>,
pub last_line: String,
}
Expand description
Request Structure
Fields§
§method: String
Metod Request (For example: GET, POST, PUT).
url: String
Url Request (For example: /sign, /find/qwe).
http: String
Type Http (HTTP/1.0, HTTP/1.1, HTTP/2.0).
Cookies Files. For edit Cookies files, used Response, Not request!
add_content: HashMap<String, String>
Add Contents. When your site requests the code, the information goes here.
last_line: String
Add Contents which Don’t Parsed to add_content. You’re parsing it. (For example: JSON File). But if you don’t send anything, there will be garbage here.
Implementations§
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)