Skip to content
This repository was archived by the owner on Apr 27, 2020. It is now read-only.

Commit 2958de4

Browse files
committed
update function
1 parent cad2096 commit 2958de4

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

kProxy/kHttpd/kHttpd.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,14 @@ void kHttpd::set_cb(
327327
set_cb(task, url_path, method, host);
328328
}
329329

330+
void kHttpd::set_cb(
331+
const std::string &url_path,
332+
const std::string &method,
333+
const std::string &host,
334+
url_cb task) {
335+
set_cb(task, url_path, method, host);
336+
}
337+
330338
void
331339
kHttpd::set_cb(kHttpd::url_cb task, const std::string &url_path, const std::string &method, const std::string &host) {
332340
string key;

kProxy/kHttpd/kHttpd.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ class _kProxy_HEADER_Export kHttpd {
8282
const std::string &url_path,
8383
url_cb task,
8484
const std::string &host = "");
85+
void set_cb(
86+
const std::string &url_path,
87+
const std::string &method,
88+
const std::string &host,
89+
url_cb task);
8590

8691
void set_gencb(gen_cb task);
8792

0 commit comments

Comments
 (0)