Update doc

This commit is contained in:
Tatsuhiro Tsujikawa 2015-10-04 10:35:58 +09:00
parent 49573e0aa2
commit b1de6ca390
1 changed files with 4 additions and 4 deletions

View File

@ -1191,10 +1191,10 @@ typedef ssize_t (*nghttp2_send_callback)(nghttp2_session *session,
* :type:`nghttp2_data_source_read_callback`.
*
* The application first must send frame header |framehd| of length 9
* bytes. If ``frame->padlen > 0``, send 1 byte of value
* ``frame->padlen - 1``. Then send exactly |length| bytes of
* application data. Finally, if ``frame->padlen > 0``, send
* ``frame->padlen - 1`` bytes of zero (they are padding).
* bytes. If ``frame->data.padlen > 0``, send 1 byte of value
* ``frame->data.padlen - 1``. Then send exactly |length| bytes of
* application data. Finally, if ``frame->data.padlen > 1``, send
* ``frame->data.padlen - 1`` bytes of zero as padding.
*
* The application has to send complete DATA frame in this callback.
* If all data were written successfully, return 0.