Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: http_listener multiple routes

$
0
0
Hi paulsc,

Yes we don't have any ability with the library to add URIs for listening to an http_listener after it is constructed. However there isn't any reason why you can't dynamically construct an http_listener with a URI you get at runtime from some location like a database. Just do something like the following:
const auto &uriToListen = GetUriFromDatabase();
http_listener listener(uriToListen);
...
Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles