提交 10f4cf95 编写于 作者: C Cliffano Subagio

Fix X-Text-Size header description

X-Text-Size actually contains the offset to be used for the next start parameter, this header does contain the chunk size itself, and hence the client only needs to pass X-Text-Size header value as the next start.

The value of X-Text-Size header is the return value of writeLogTo method, which is the chunk size + the previous start. https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/LargeText.java#L171
上级 d9b23a2d
......@@ -50,8 +50,8 @@ THE SOFTWARE.
The <tt>start</tt> parameter controls the byte offset of where you start.
</p><p>
The response will contain a chunk of the console output, as well as the <tt>X-Text-Size</tt> header that represents
the number of bytes (in the raw log file) the response served.
This is the number you want to add to the <tt>start</tt> parameter before making the next call.
the bytes offset (of the raw log file).
This is the number you want to use as the <tt>start</tt> parameter for the next call.
</p><p>
If the response also contains the <tt>X-More-Data: true</tt> header, the server is indicating that the build
is in progress, and you need to repeat the request after some delay. The Jenkins UI waits 5 seconds before making
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册