mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 12:22:37 +00:00
Fix broken parsing support for Clash Shadowsocks configuration. Fix support for multipart Surge custom rule. Optimize codes. INIReader: Remove MAX_LINE_LENGTH limit.
21 lines
594 B
C++
21 lines
594 B
C++
#ifndef WEBSERVER_H_INCLUDED
|
|
#define WEBSERVER_H_INCLUDED
|
|
|
|
typedef std::string (*response_callback)(std::string, std::string); //process arguments and POST data and return served-content
|
|
|
|
#define RESPONSE_CALLBACK_ARGS std::string argument, std::string postdata
|
|
|
|
struct listener_args
|
|
{
|
|
std::string listen_address;
|
|
int port;
|
|
int max_conn;
|
|
int max_workers;
|
|
};
|
|
|
|
void append_response(std::string method, std::string uri, std::string content_type, response_callback response);
|
|
int start_web_server(void *argv);
|
|
int start_web_server_multi(void *argv);
|
|
|
|
#endif // WEBSERVER_H_INCLUDED
|