From 02937f88524ce5c316ef7bece10f9d38fb5c2b65 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sat, 4 Jan 2014 14:28:20 +0000 Subject: [PATCH] API doc synced --- docs/API.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/API.md b/docs/API.md index 0eb99164..3bd09c51 100644 --- a/docs/API.md +++ b/docs/API.md @@ -124,13 +124,8 @@ context of the IO thread. void mg_printf_data(struct mg_connection *, const char *format, ...); These functions are used to construct a response to the client. HTTP response -consists of three parts: - - * a status line - * zero or more HTTP headers - * response body - -Mongoose provides functions for all three parts: +consists of three parts: a status line, zero or more HTTP headers, +a response body. Mongoose provides functions for all three parts: * `mg_send_status()` is used to create status line. This function can be called zero or once. If `mg_send_status()` is not called, then Mongoose will send status 200 (success) implicitly. @@ -141,6 +136,8 @@ Mongoose provides functions for all three parts: implicitly, and sends data in chunks. Therefore, it is not necessary to set `Content-Length` header. + + int mg_websocket_write(struct mg_connection* conn, int opcode, const char *data, size_t data_len);