Add http_server_options

This commit is contained in:
Kamil Trzcinski
2022-04-05 16:13:21 +02:00
parent 9cf4cc359a
commit 4d3e8835ab
3 changed files with 27 additions and 6 deletions

View File

@ -28,7 +28,12 @@ typedef struct http_worker_s {
char client_method[256];
} http_worker_t;
int http_server(int listen_port, int maxcons, http_method_t *methods);
typedef struct http_server_options_s {
int listen_port;
int maxcons;
} http_server_options_t;
int http_server(http_server_options_t *options, http_method_t *methods);
void http_index(http_worker_t *worker, FILE *stream);
void http_video_html(http_worker_t *worker, FILE *stream);