From fe77fb53628ce69bfea6010636d60ba64e19e91c Mon Sep 17 00:00:00 2001 From: jangko Date: Mon, 12 Apr 2021 15:54:23 +0700 Subject: [PATCH] update documentation about response stream changes --- docs/api.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index c2dbf89..bbdbb33 100644 --- a/docs/api.md +++ b/docs/api.md @@ -53,9 +53,10 @@ If you find anything not listed or not exported in this list, please submit an i - `resp(x: float64): Node` #### Builtin JSON response stream API - - `newJsonRespStream(doubleEscape = false): RespStream`. Create a new JSON response stream object. + - `new(_: type JsonRespStream, doubleEscape = false): RespStream`. Create a new JSON response stream object. When `doubleEscape` is true, the `getOutput` will return a text string that can be embedded in a json string. - `getOutput(): string`. Get a string output from response stream. + - `JsonRespStream`. The JSON stream type #### Datatypes - `ErrorDesc`.