Skip to content

Boost.Beast HTTP echo server example based on C++20 stackless coroutines

License

Notifications You must be signed in to change notification settings

evilenzo/coroutine-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coroutine-server

Boost.Beast HTTP echo server example based on C++20 stackless coroutines

$ coroutine-server <address> <port> <threads>

Build requirements

  • Boost::system
  • fmt (presented by a submodule)

Example

$ coroutine-server 127.0.0.1 8080 4 &
$ curl -X GET 127.0.0.1:8080 -d "Hello, World!"
Hello, World!