ConnectionMode uses ConstantsTrait
HTTP connection persistence modes supported by the ArangoDB client.
Values match the canonical Connection HTTP header values, so the
enumeration doubles as a header builder when the transport layer
needs to set the connection mode explicitly.
Tags
Table of Contents
Constants
- CLOSE : string = 'Close'
- Open a fresh TCP connection for every request and close it on completion.
- KEEP_ALIVE : string = 'Keep-Alive'
- Reuse the underlying TCP connection across requests (HTTP keep-alive).
Constants
CLOSE
Open a fresh TCP connection for every request and close it on completion.
public
string
CLOSE
= 'Close'
Useful for short-lived CLI scripts or environments where the server limits the lifetime of inactive connections.
KEEP_ALIVE
Reuse the underlying TCP connection across requests (HTTP keep-alive).
public
string
KEEP_ALIVE
= 'Keep-Alive'
Lower latency and CPU cost for chatty workloads — recommended for server-to-server use.