EVE 1.0
http_server_conf_t Struct Reference

#include <http-server.h>

Collaboration diagram for http_server_conf_t:

Data Fields

http_auth_callback_t AuthCb
 
uint8_t ConnectionPoolSize
 
uint8_t TlsConnPoolSize
 
uint8_t ThreadPoolSize
 
uint8_t HandshakePoolSize
 
uint8_t ParserPoolSize
 
uint8_t SocketBacklogSize
 
bool UseHttps
 
bool ForceHttps
 
bool ForceIpAddr
 
uint16_t HandshakeTimeout
 
uint16_t KeepaliveTimeout
 
uint16_t CloseTimeout
 
uint16_t TransportTimeout
 

Detailed Description

HTTP server general configuration

TlsConnPoolSize <= ConnectionPoolSize; ThreadPoolSize <= ConnectionPoolSize; ParserPoolSize <= ThreadPoolSize; HandshakePoolSize <= ThreadPoolSize; HandshakePoolSize <= TlsConnPoolSize; SocketBacklogSize >= 2

Definition at line 64 of file http-server.h.

Field Documentation

http_auth_callback_t http_server_conf_t::AuthCb

Authentication callback

Definition at line 66 of file http-server.h.

uint8_t http_server_conf_t::ConnectionPoolSize

Max number of concurrent HTTP + HTTPS connections

Definition at line 67 of file http-server.h.

uint8_t http_server_conf_t::TlsConnPoolSize

Max number of concurrent HTTPS connections

Definition at line 68 of file http-server.h.

uint8_t http_server_conf_t::ThreadPoolSize

Number of parallel processing threads

Definition at line 69 of file http-server.h.

uint8_t http_server_conf_t::HandshakePoolSize

HTTPS handshake pool size

Definition at line 70 of file http-server.h.

uint8_t http_server_conf_t::ParserPoolSize

Number of concurrent HTTP request parsers

Definition at line 71 of file http-server.h.

uint8_t http_server_conf_t::SocketBacklogSize

Total number of sockets in both HTTP and HTTPS listen backlog

Definition at line 72 of file http-server.h.

bool http_server_conf_t::UseHttps

Use HTTPS

Definition at line 73 of file http-server.h.

bool http_server_conf_t::ForceHttps

Redirect HTTP requests to HTTPS port

Definition at line 74 of file http-server.h.

bool http_server_conf_t::ForceIpAddr

Redirect HTTP(S) requests to an IP address

Definition at line 75 of file http-server.h.

uint16_t http_server_conf_t::HandshakeTimeout

HTTPS handshake timeout

Definition at line 76 of file http-server.h.

uint16_t http_server_conf_t::KeepaliveTimeout

HTTP / HTTPS keep-alive timeout

Definition at line 77 of file http-server.h.

uint16_t http_server_conf_t::CloseTimeout

Socket close timeout

Definition at line 78 of file http-server.h.

uint16_t http_server_conf_t::TransportTimeout

TCP send / recv timeout

Definition at line 79 of file http-server.h.