Home
last modified time | relevance | path

Searched refs:svr (Results 1 - 2 of 2) sorted by relevance

/base/print/print_fwk/services/print_service/src/
H A Dprint_http_server_manager.cpp37 bool PrintHttpServerManager::AllocatePort(std::shared_ptr<httplib::Server> svr, int32_t &port) in AllocatePort() argument
51 if (svr != nullptr && svr->bind_to_port(LOCAL_HOST, allocPort)) { in AllocatePort()
60 void PrintHttpServerManager::StartServer(std::shared_ptr<httplib::Server> svr, in StartServer() argument
64 if (svr == nullptr) { in StartServer()
65 PRINT_HILOGE("svr is null"); in StartServer()
68 svr->set_payload_max_length(HTTP_SERVER_MAX_LENGTH); in StartServer()
70 svr->Post("^/.*", [process](const httplib::Request &req, httplib::Response &res, in StartServer()
79 svr->listen_after_bind(); in StartServer()
/base/print/print_fwk/services/print_service/include/
H A Dprint_http_server_manager.h36 static void StartServer(std::shared_ptr<httplib::Server> svr,
42 bool AllocatePort(std::shared_ptr<httplib::Server> svr, int32_t &port);

Completed in 1 milliseconds