소스 검색

Updates the MHD_OPTION_URI_LOG_CALLBACK's documentation.

silvioprog 9 년 전
부모
커밋
fe7582e526
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      ChangeLog
  2. 5 1
      src/include/microhttpd.h

+ 3 - 0
ChangeLog

@@ -1,3 +1,6 @@
+Tue Mar  7 10:37:45 BRT 2017
+	Updated the MHD_OPTION_URI_LOG_CALLBACK's documentation.
+
 Mon Mar  6 21:46:59 BRT 2017
 	Added the i18n example fixing #4924. -SC
 

+ 5 - 1
src/include/microhttpd.h

@@ -1247,9 +1247,13 @@ enum MHD_OPTION
    * be the 0-terminated URI of the request.
    *
    * Note that during the time of this call, most of the connection's
-   * state is not initialized (as we have not yet parsed he headers).
+   * state is not initialized (as we have not yet parsed the headers).
    * However, information about the connecting client (IP, socket)
    * is available.
+   *
+   * The specified function is called only once per request, therefore some
+   * programmers may use it to instantiate their own request objects, freeing
+   * them in the notifier #MHD_OPTION_NOTIFY_COMPLETED.
    */
   MHD_OPTION_URI_LOG_CALLBACK = 7,