Add http_server_options
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user