Struct haproxy_api::Http [−][src]
pub struct Http<'lua>(_);
Expand description
The “Http” class contain all the HTTP manipulation functions.
Implementations
Returns a Headers
table containing all the request headers.
Returns a Headers
table containing all the response headers.
Appends an HTTP header field name
with value
in the request.
Appends an HTTP header field name
with value
in the response.
Removes all HTTP header fields in the request by name
.
Removes all HTTP header fields in the response by name
.
Replaces all occurrence of HTTP request header name
, by only one containing the value
.
Replaces all occurrence of HTTP response header name
, by only one containing the value
.
Matches the regular expression in all occurrences of HTTP request header name
according to regex
,
and replaces them with the replace
argument.
The replacement value can contain back references like 1, 2, …
Matches the regular expression in all occurrences of HTTP response header name
according to regex
,
and replaces them with the replace
argument.
The replacement value can contain back references like 1, 2, …
Rewrites the request method with the method
.
Rewrites the request path with the path
.
Rewrites the request’s query string which appears after the first question mark (?
)
with the query
.
Rewrites the request URI with the uri
.
Trait Implementations
Auto Trait Implementations
impl<'lua> !RefUnwindSafe for Http<'lua>
impl<'lua> !UnwindSafe for Http<'lua>
Blanket Implementations
Mutably borrows from an owned value. Read more
Performs the conversion. Read more