ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
http_server Struct Reference

Data Fields

http_server_config_t config
uv_loop_t loop
uv_tcp_t listener
uv_tcp_t listener6
uv_async_t stop_async
uv_async_t wake_async
bool running
bool adopted_socket
bool thread_started
bool foreground_running
bool http3_attached
bool listener_initialized
bool listener6_initialized
bool stop_async_initialized
bool wake_async_initialized
platform_thread_t thread
size_t connections
atomic_t inflight_requests
http_server_client_t * clients
rate_limiter_t * rate_limiter
rate_limit_config_t request_rate_limit
mutex_t response_mutex
http_response_t * retained_responses
SSL_CTX * tls_context

Detailed Description

Definition at line 51 of file lib/network/http/server/server.c.

Field Documentation

◆ adopted_socket

bool http_server::adopted_socket

Definition at line 59 of file lib/network/http/server/server.c.

Referenced by http_server_adopt_socket().

◆ clients

http_server_client_t* http_server::clients

Definition at line 70 of file lib/network/http/server/server.c.

◆ config

◆ connections

size_t http_server::connections

Definition at line 68 of file lib/network/http/server/server.c.

◆ foreground_running

bool http_server::foreground_running

Definition at line 61 of file lib/network/http/server/server.c.

Referenced by http_server_run(), and http_server_stop().

◆ http3_attached

bool http_server::http3_attached

Definition at line 62 of file lib/network/http/server/server.c.

◆ inflight_requests

atomic_t http_server::inflight_requests

Definition at line 69 of file lib/network/http/server/server.c.

◆ listener

uv_tcp_t http_server::listener

Definition at line 54 of file lib/network/http/server/server.c.

Referenced by http_server_adopt_socket(), and http_server_init().

◆ listener6

uv_tcp_t http_server::listener6

Definition at line 55 of file lib/network/http/server/server.c.

Referenced by http_server_init().

◆ listener6_initialized

bool http_server::listener6_initialized

Definition at line 64 of file lib/network/http/server/server.c.

Referenced by http_server_init().

◆ listener_initialized

bool http_server::listener_initialized

Definition at line 63 of file lib/network/http/server/server.c.

Referenced by http_server_init().

◆ loop

uv_loop_t http_server::loop

◆ rate_limiter

rate_limiter_t* http_server::rate_limiter

◆ request_rate_limit

rate_limit_config_t http_server::request_rate_limit

◆ response_mutex

◆ retained_responses

http_response_t* http_server::retained_responses

◆ running

◆ stop_async

uv_async_t http_server::stop_async

Definition at line 56 of file lib/network/http/server/server.c.

Referenced by http_server_init(), and http_server_stop().

◆ stop_async_initialized

bool http_server::stop_async_initialized

Definition at line 65 of file lib/network/http/server/server.c.

Referenced by http_server_init().

◆ thread

platform_thread_t http_server::thread

Definition at line 67 of file lib/network/http/server/server.c.

Referenced by http_server_start(), and http_server_stop().

◆ thread_started

bool http_server::thread_started

◆ tls_context

SSL_CTX* http_server::tls_context

Definition at line 75 of file lib/network/http/server/server.c.

Referenced by http_server_destroy(), and http_server_init().

◆ wake_async

uv_async_t http_server::wake_async

Definition at line 57 of file lib/network/http/server/server.c.

Referenced by http_server_init(), and http_server_wakeup().

◆ wake_async_initialized

bool http_server::wake_async_initialized

Definition at line 66 of file lib/network/http/server/server.c.

Referenced by http_server_init().


The documentation for this struct was generated from the following file: