Update extensions/ringhttplib/README.md - Use braces in the example to access the oServer object
@@ -14,14 +14,15 @@ URL: https://github.com/yhirose/cpp-httplib
load "httplib.ring"
- ? "Start the server..."
- oServer = new Server
+ oServer = new Server {
? "Try localhost:8080/hi"
- oServer.route(:Get,"/hi",:mytest)
+ route(:Get,"/hi",:mytest)
? "Listen to port 8080"
- oServer.listen("0.0.0.0", 8080)
+ listen("0.0.0.0", 8080)
+
+ }
func mytest
oServer.setContent("Hello World!", "text/plain")
