Pārlūkot izejas kodu

Update Embedding.md

sunsetbrew 12 gadi atpakaļ
vecāks
revīzija
3f7abe8688
1 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 5 4
      docs/Embedding.md

+ 5 - 4
docs/Embedding.md

@@ -38,15 +38,16 @@ By default, the server will automatically serve up files like a normal HTTP serv
 ### C
 ### C
   - Use mg_start() to start the server.
   - Use mg_start() to start the server.
   - Use mg_stop() to stop the server.
   - Use mg_stop() to stop the server.
-  - Use mg_start() options to select the port and document root among other things.
-  - Use mg_start() callbacks to add your own hooks.  The *begin_request* callback is almost always what is needed.
+  - Use mg_set_request_handler() to easily add your own request handlers.
+  - Use mg_start() *options* to select the port and document root among other things.
+  - Use mg_start() *callbacks* to add your own hooks.  The *begin_request* callback is almost always what is needed.
 
 
 ### C++
 ### C++
   - Create CivetHandlers for each URI.
   - Create CivetHandlers for each URI.
   - Register the handlers with CivertServer::addHandler()
   - Register the handlers with CivertServer::addHandler()
   - CivetServer starts on contruction and stops on destruction.
   - CivetServer starts on contruction and stops on destruction.
-  - Use contructor options to select the port and document root among other things.
-  - Use constructor callbacks to add your own hooks.
+  - Use contructor *options* to select the port and document root among other things.
+  - Use constructor *callbacks* to add your own hooks.
 
 
 Lua Support
 Lua Support
 ------
 ------