[−][src]Struct haproxy_api::Http
Implementations
impl<'lua> Http<'lua>
[src]
pub fn req_get_headers(&self) -> Result<Headers>
[src]
pub fn res_get_headers(&self) -> Result<Headers>
[src]
pub fn req_add_header<V: ToLua<'lua>>(&self, name: &str, value: V) -> Result<()>
[src]
pub fn res_add_header<V: ToLua<'lua>>(&self, name: &str, value: V) -> Result<()>
[src]
pub fn req_del_header(&self, name: &str) -> Result<()>
[src]
pub fn res_del_header(&self, name: &str) -> Result<()>
[src]
pub fn req_set_header<V: ToLua<'lua>>(&self, name: &str, value: V) -> Result<()>
[src]
pub fn res_set_header<V: ToLua<'lua>>(&self, name: &str, value: V) -> Result<()>
[src]
pub fn req_rep_header(
&self,
name: &str,
regex: &str,
replace: &str
) -> Result<()>
[src]
&self,
name: &str,
regex: &str,
replace: &str
) -> Result<()>
pub fn res_rep_header(
&self,
name: &str,
regex: &str,
replace: &str
) -> Result<()>
[src]
&self,
name: &str,
regex: &str,
replace: &str
) -> Result<()>
pub fn req_set_method(&self, method: &str) -> Result<()>
[src]
pub fn req_set_path(&self, path: &str) -> Result<()>
[src]
pub fn req_set_query(&self, query: &str) -> Result<()>
[src]
pub fn req_set_uri(&self, uri: &str) -> Result<()>
[src]
pub fn res_set_status(&self, status: u16, reason: Option<&str>) -> Result<()>
[src]
Trait Implementations
Auto Trait Implementations
impl<'lua> !RefUnwindSafe for Http<'lua>
impl<'lua> !Send for Http<'lua>
impl<'lua> !Sync for Http<'lua>
impl<'lua> Unpin for Http<'lua>
impl<'lua> !UnwindSafe for Http<'lua>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<'lua, T> FromLua<'lua> for T where
T: 'static + UserData + Clone,
[src]
T: 'static + UserData + Clone,
impl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>,
[src]
T: FromLua<'lua>,
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,