Merge pull request #32994 from Calinou/http-document-body-length-caveats
Mention body length getter caveats in HTTPClient and HTTPRequest
This commit is contained in:
commit
29990d0b1e
2 changed files with 3 additions and 1 deletions
|
@ -44,6 +44,7 @@
|
|||
</return>
|
||||
<description>
|
||||
Returns the response's body length.
|
||||
[b]Note:[/b] Some Web servers may not send a body length. In this case, the value returned will be [code]-1[/code]. If using chunked transfer encoding, the body length will also be [code]-1[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_response_code" qualifiers="const">
|
||||
|
@ -175,7 +176,7 @@
|
|||
<argument index="0" name="bytes" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the size of the buffer used and maximum bytes to read per iteration. see [method read_response_body_chunk]
|
||||
Sets the size of the buffer used and maximum bytes to read per iteration. See [method read_response_body_chunk].
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
</return>
|
||||
<description>
|
||||
Returns the response body length.
|
||||
[b]Note:[/b] Some Web servers may not send a body length. In this case, the value returned will be [code]-1[/code]. If using chunked transfer encoding, the body length will also be [code]-1[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_downloaded_bytes" qualifiers="const">
|
||||
|
|
Loading…
Reference in a new issue