Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ContentLength

override long System.Net.HttpWebRequest.ContentLength
getset

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 {
298 {
300 }
301 if (value < 0)
302 {
303 throw new ArgumentOutOfRangeException("value", System.SR.net_clsmall);
304 }
305 SetSpecialHeaders("Content-Length", value.ToString());
306 }
307 }
WebHeaderCollection _webHeaderCollection
void SetSpecialHeaders(string HeaderName, string value)
static string net_writestarted
Definition SR.cs:20
static string net_clsmall
Definition SR.cs:110
Definition SR.cs:7