myMPD
Internal API documentation
Loading...
Searching...
No Matches
request_handler.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
11#ifndef MYMPD_WEB_SERVER_REQUEST_HANDLER_H
12#define MYMPD_WEB_SERVER_REQUEST_HANDLER_H
13
14#include "dist/mongoose/mongoose.h"
16
17bool request_handler_api(struct mg_connection *nc, sds body, struct mg_str *auth_header,
18 struct t_mg_user_data *mg_user_data);
19bool request_handler_script_api(struct mg_connection *nc, sds body);
20void request_handler_browse(struct mg_connection *nc, struct mg_http_message *hm,
21 struct t_mg_user_data *mg_user_data);
22void request_handler_proxy(struct mg_connection *nc, struct mg_http_message *hm,
23 struct mg_connection *backend_nc);
24void request_handler_proxy_covercache(struct mg_connection *nc, struct mg_http_message *hm,
25 struct mg_connection *backend_nc);
26void request_handler_serverinfo(struct mg_connection *nc);
27void request_handler_ca(struct mg_connection *nc, struct mg_http_message *hm,
28 struct t_mg_user_data *mg_user_data);
29void request_handler_extm3u(struct mg_connection *nc, struct mg_http_message *hm,
30 struct t_mg_user_data *mg_user_data);
31
32#endif
bool request_handler_api(struct mg_connection *nc, sds body, struct mg_str *auth_header, struct t_mg_user_data *mg_user_data)
Definition request_handler.c:33
bool request_handler_script_api(struct mg_connection *nc, sds body)
Definition request_handler.c:139
void request_handler_proxy_covercache(struct mg_connection *nc, struct mg_http_message *hm, struct mg_connection *backend_nc)
Definition request_handler.c:267
void request_handler_proxy(struct mg_connection *nc, struct mg_http_message *hm, struct mg_connection *backend_nc)
Definition request_handler.c:241
void request_handler_ca(struct mg_connection *nc, struct mg_http_message *hm, struct t_mg_user_data *mg_user_data)
Definition request_handler.c:322
void request_handler_extm3u(struct mg_connection *nc, struct mg_http_message *hm, struct t_mg_user_data *mg_user_data)
Definition request_handler.c:343
void request_handler_browse(struct mg_connection *nc, struct mg_http_message *hm, struct t_mg_user_data *mg_user_data)
Definition request_handler.c:192
void request_handler_serverinfo(struct mg_connection *nc)
Definition request_handler.c:288
Definition mg_user_data.h:24
Webserver utility functions.