Skip to content

Commit 6712c27

Browse files
anupamsrAnupam Srivastava
andauthored
Update HttpWebRequest.xml (dotnet#9137)
Remove outdated and unsupported value of -1 from the documentation. Co-authored-by: Anupam Srivastava <[email protected]>
1 parent cf203c5 commit 6712c27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xml/System.Net/HttpWebRequest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,13 +2495,13 @@ Both <xref:System.Net.HttpWebRequest> constructors are obsolete and should not b
24952495
<format type="text/markdown"><![CDATA[
24962496
24972497
## Remarks
2498-
The length of the response header received the response status line and any extra control characters that are received as part of HTTP protocol. A value of -1 means no limit is imposed on the response headers received; a value of 0 means that all requests fail.
2498+
The length of the response header received the response status line and any extra control characters that are received as part of HTTP protocol. A value of 0 means that all requests fail.
24992499
25002500
This value can also be changed in the configuration file. The impact of this property can be overridden by setting the <xref:System.Net.HttpWebRequest.MaximumResponseHeadersLength%2A> property on an instance of the <xref:System.Net.HttpWebRequest> class.
25012501
25022502
]]></format>
25032503
</remarks>
2504-
<exception cref="T:System.ArgumentOutOfRangeException">The value is not equal to -1 and is less than zero.</exception>
2504+
<exception cref="T:System.ArgumentOutOfRangeException">The value is less than zero.</exception>
25052505
</Docs>
25062506
</Member>
25072507
<MemberGroup MemberName="EndGetRequestStream">
@@ -3701,7 +3701,7 @@ The GetHashCode method returns a hash code of the web request. This value can be
37013701
<format type="text/markdown"><![CDATA[
37023702
37033703
## Remarks
3704-
The length of the response header includes the response status line and any extra control characters that are received as part of HTTP protocol. A value of -1 means no limit is imposed on the response headers; a value of 0 means that all requests fail.
3704+
The length of the response header includes the response status line and any extra control characters that are received as part of HTTP protocol. A value of 0 means that all requests fail.
37053705
37063706
If the <xref:System.Net.HttpWebRequest.MaximumResponseHeadersLength%2A> property is not explicitly set, it defaults to the value of the <xref:System.Net.HttpWebRequest.DefaultMaximumResponseHeadersLength%2A> property.
37073707
@@ -3719,7 +3719,7 @@ The GetHashCode method returns a hash code of the web request. This value can be
37193719
]]></format>
37203720
</remarks>
37213721
<exception cref="T:System.InvalidOperationException">The property is set after the request has already been submitted.</exception>
3722-
<exception cref="T:System.ArgumentOutOfRangeException">The value is less than 0 and is not equal to -1.</exception>
3722+
<exception cref="T:System.ArgumentOutOfRangeException">The value is less than 0.</exception>
37233723
</Docs>
37243724
</Member>
37253725
<Member MemberName="MediaType">

0 commit comments

Comments
 (0)