add mention of nonce to the help page

pull/2/head
Ondřej Hruška 7 years ago
parent ce1bda3a70
commit 8b610aa95b
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 4
      pages/help/cmd_d2d.php

@ -57,6 +57,8 @@
<li>`H` - get response headers <li>`H` - get response headers
<li>`B` - get response body <li>`B` - get response body
<li>`X` - ignore the response, return nothing <li>`X` - ignore the response, return nothing
<li>`N=<i>nonce</i>` - a custom string that will be added in the options field of the response message.
Use this to keep track of which request a response belongs to.
<li>`T=<i>ms</i>` - request timeout (default 5000~ms), in milliseconds <li>`T=<i>ms</i>` - request timeout (default 5000~ms), in milliseconds
<li>`L=<i>bytes</i>` - limit response length (default 0 = don't limit). Applies to the head, body, or both combined, depending on the `H` and `B` flags <li>`L=<i>bytes</i>` - limit response length (default 0 = don't limit). Applies to the head, body, or both combined, depending on the `H` and `B` flags
<li>`l=<i>bytes</i>` - limit the response buffer size (default 5000~B). <li>`l=<i>bytes</i>` - limit the response buffer size (default 5000~B).
@ -75,7 +77,7 @@
<ul> <ul>
<li>`_status_` - a HTTP status code, eg. 200 is OK, 404 Not found. <li>`_status_` - a HTTP status code, eg. 200 is OK, 404 Not found.
<li>`_options_` - similar to those in the request, here describing the response data. <li>`_options_` - similar to those in the request, here describing the response data.
This field can contain comma-separated `B`, `H` and `L=<i>bytes</i>`. This field can contain comma-separated `B`, `H` and `L=<i>bytes</i>` and `N=<i>nonce</i>`.
<li>`_response_` - the response, as requested. If both headers and body are received, <li>`_response_` - the response, as requested. If both headers and body are received,
they will be separated by an empty line (i.e. `\r\n\r\n`). Response can be up to several they will be separated by an empty line (i.e. `\r\n\r\n`). Response can be up to several
kilobytes long, depending on the `L=` and `l=` options. kilobytes long, depending on the `L=` and `l=` options.

Loading…
Cancel
Save