Crate haproxy_api

Source
Expand description

§HAProxy 2.x Lua API

Intended to be used together with mlua in a module mode.

Please see the Lua API documentation for details.

Structs§

Channel
The “Channel” class contains all functions to manipulate channels.
Converters
The “Converters” class allows to call a lot of internal HAProxy sample converters.
Core
The “Core” class contains all the HAProxy core functions.
Fetches
The “Fetches” class allows to call a lot of internal HAProxy sample fetches.
FilterMethod
Represents methods available to call in UserFilter.
Headers
Http
The “Http” class contain all the HTTP manipulation functions.
HttpMessage
This class contains all functions to manipulate an HTTP message. For now, this class is only available from a filter context.
Proxy
The “Proxy” class provides a way for manipulating proxy and retrieving information like statistics.
Server
The “Server” class provides a way for manipulating servers and retrieving information.
StickTable
The “StickTable” class can be used to access the HAProxy stick tables.
Time
Txn
The txn class contain all the functions relative to the http or tcp transaction.

Enums§

Action
FilterResult
A code that filter callback functions may return.
LogLevel
ServiceMode

Traits§

UserFilter
A trait that defines all required callback functions to implement filters.

Functions§

create_async_function
Creates a new async function that can be used in HAProxy configuration.
runtime
Returns the global tokio runtime.