Prechádzať zdrojové kódy

Mention body length getter caveats in HTTPClient and HTTPRequest

Hugo Locurcio 6 rokov pred
rodič
commit
04d3146b75
2 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 2 1
      doc/classes/HTTPClient.xml
  2. 1 0
      doc/classes/HTTPRequest.xml

+ 2 - 1
doc/classes/HTTPClient.xml

@@ -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>

+ 1 - 0
doc/classes/HTTPRequest.xml

@@ -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">