On the boot asio server, I would like to make the route the request URL (such as html file), but as far as I looked it up, it doesn't show how to do it.Can someone teach me?
[Additional note]
For example, if localhost:3000/hoge.html is accessed, hoge.html is displayed, and if localhost:3000/fuga.html is accessed, fuga.html is displayed.
https://qiita.com/ritukiii/items/8173ff98f31c2f76b39a
I'd like to do the C++ version of this article, which is a combination of "Try separating processing by request" and "Try displaying HTML."
For HTTP Server as described in the official Boost.Asio document, simply configure the third argument <doc_root>
for the server
constructor.
© 2024 OneMinuteCode. All rights reserved.