Fix C++ lib sample
This commit is contained in:
parent
c31be5af4d
commit
7f60e8a307
|
@ -1003,7 +1003,8 @@ HTTP/2 server looks like this:
|
|||
|
||||
server.listen
|
||||
("*", 3000,
|
||||
[](std::shared_ptr<request> req, std::shared_ptr<response> res)
|
||||
[](const std::shared_ptr<request>& req,
|
||||
const std::shared_ptr<response>& res)
|
||||
{
|
||||
res->write_head(200);
|
||||
res->end("hello, world");
|
||||
|
|
Loading…
Reference in New Issue