hello.cc 323 B

12345678910111213141516171819
  1. //
  2. // hello.cc
  3. //
  4. // Copyright (c) 2012 Yuji Hirose. All rights reserved.
  5. // The Boost Software License 1.0
  6. //
  7. #include <httpsvrkit.h>
  8. int main(void)
  9. {
  10. HTTP_SERVER("localhost", 1234) {
  11. GET("/hi", {
  12. res.set_content("Hello World!");
  13. });
  14. }
  15. }
  16. // vim: et ts=4 sw=4 cin cino={1s ff=unix