Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ContentLength
override long System.Net.HttpWebRequest.ContentLength
get
set
Definition at line
288
of file
HttpWebRequest.cs
.
289
{
290
get
291
{
292
long
.TryParse(
_webHeaderCollection
[
"Content-Length"
],
out
var
result);
293
return
result;
294
}
295
set
296
{
297
if
(
RequestSubmitted
)
298
{
299
throw
new
InvalidOperationException
(
System
.
SR
.
net_writestarted
);
300
}
301
if
(
value
< 0)
302
{
303
throw
new
ArgumentOutOfRangeException(
"value"
,
System
.
SR
.
net_clsmall
);
304
}
305
SetSpecialHeaders
(
"Content-Length"
,
value
.ToString());
306
}
307
}
System.Net.HttpWebRequest._webHeaderCollection
WebHeaderCollection _webHeaderCollection
Definition
HttpWebRequest.cs:104
System.Net.HttpWebRequest.RequestSubmitted
bool RequestSubmitted
Definition
HttpWebRequest.cs:823
System.Net.HttpWebRequest.SetSpecialHeaders
void SetSpecialHeaders(string HeaderName, string value)
Definition
HttpWebRequest.cs:847
System.SR.net_writestarted
static string net_writestarted
Definition
SR.cs:20
System.SR.net_clsmall
static string net_clsmall
Definition
SR.cs:110
System.SR
Definition
SR.cs:7
System.Runtime.Serialization.CollectionKind.Dictionary
@ Dictionary
System.Transactions.TransactionExceptionType.InvalidOperationException
@ InvalidOperationException
System.ExceptionArgument.value
@ value
System
Definition
BlockingCollection.cs:8
System
Net
HttpWebRequest
Generated by
1.10.0