YUKI Hiroshi
null+****@clear*****
Thu May 7 11:16:36 JST 2015
YUKI Hiroshi 2015-05-07 11:16:36 +0900 (Thu, 07 May 2015) New Revision: be7d7c7f413dccfc04ef03afd42ae3f579741cbb https://github.com/droonga/droonga.org/commit/be7d7c7f413dccfc04ef03afd42ae3f579741cbb Message: Add descriptions about --report-request Modified files: reference/1.1.1/command-line-tools/droonga-request/index.md Modified: reference/1.1.1/command-line-tools/droonga-request/index.md (+19 -5) =================================================================== --- reference/1.1.1/command-line-tools/droonga-request/index.md 2015-05-07 11:12:55 +0900 (b9ef893) +++ reference/1.1.1/command-line-tools/droonga-request/index.md 2015-05-07 11:16:36 +0900 (d484930) @@ -15,11 +15,7 @@ For example, if there is a Droonga node `192.168.100.50` and you are logged in t ~~~ (on 192.168.100.10) $ echo '{"type":"system.status"}' | - droonga-request --report-request --host 192.168.100.50 --receiver-host 192.168.100.10 -Request: { - "type": "system.status", - "dataset": "Default" -} + droonga-request --host 192.168.100.50 --receiver-host 192.168.100.10 Elapsed time: 0.00900742 { "inReplyTo": "1430963525.9829412", @@ -39,6 +35,24 @@ Elapsed time: 0.00900742 } ~~~ +The first line is the elapsed time to get the response. +Following lines are the response message. + +This command automatically fixups requred fields of the request message. +You can see the completed message actually sent with the option `--report-request`, like: + +~~~ +(on 192.168.100.10) +$ echo '{"type":"system.status"}' | + droonga-request --report-request --host 192.168.100.50 --receiver-host 192.168.100.10 +Request: { + "type": "system.status", + "dataset": "Default" +} +Elapsed time: 0.00900742 +... +~~~ + For the complete list of available commands, see also [the command reference](../../commands/). ## Usage {#usage} -------------- next part -------------- HTML����������������������������...Télécharger