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.

Rewrites the response status code with the code. If no custom reason is provided, it will be generated from the status.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.