Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ResponseDescription.cs
Go to the documentation of this file.
1using System.Text;
2
3namespace System.Net;
4
5internal sealed class ResponseDescription
6{
7 internal bool Multiline;
8
9 internal int Status = -1;
10
11 internal string StatusDescription;
12
14
15 internal string StatusCodeString;
16
18 {
19 get
20 {
21 if (Status >= 100)
22 {
23 return Status <= 199;
24 }
25 return false;
26 }
27 }
28
29 internal bool PositiveCompletion
30 {
31 get
32 {
33 if (Status >= 200)
34 {
35 return Status <= 299;
36 }
37 return false;
38 }
39 }
40
41 internal bool TransientFailure
42 {
43 get
44 {
45 if (Status >= 400)
46 {
47 return Status <= 499;
48 }
49 return false;
50 }
51 }
52
53 internal bool PermanentFailure
54 {
55 get
56 {
57 if (Status >= 500)
58 {
59 return Status <= 599;
60 }
61 return false;
62 }
63 }
64
65 internal bool InvalidStatusCode
66 {
67 get
68 {
69 if (Status >= 100)
70 {
71 return Status > 599;
72 }
73 return true;
74 }
75 }
76}