Struct sn0int_std::web::HttpRequest
source · pub struct HttpRequest { /* private fields */ }
Implementations§
source§impl HttpRequest
impl HttpRequest
pub fn new( session: &HttpSession, method: String, url: String, user_agent: String, options: RequestOptions ) -> HttpRequest
pub fn send(&mut self, state: &dyn WebState) -> Result<Response, Error>
pub fn response_to_lua<S>( &self, state: &S, res: Response ) -> Result<LuaMap, Error>where S: WebState + BlobState,
source§impl HttpRequest
impl HttpRequest
pub fn try_from(x: AnyLuaValue) -> Result<HttpRequest, Error>
Trait Implementations§
source§impl Debug for HttpRequest
impl Debug for HttpRequest
source§impl Default for HttpRequest
impl Default for HttpRequest
source§fn default() -> HttpRequest
fn default() -> HttpRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpRequest
impl<'de> Deserialize<'de> for HttpRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<HttpRequest> for AnyLuaValue
impl From<HttpRequest> for AnyLuaValue
source§fn from(req: HttpRequest) -> AnyLuaValue
fn from(req: HttpRequest) -> AnyLuaValue
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnwindSafe for HttpRequest
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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