HAProxy API logic.