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

◆ CreateHeaderHashtable()

static Hashtable System.Net.HeaderInfoTable.CreateHeaderHashtable ( )
inlinestaticprivate

Definition at line 80 of file HeaderInfoTable.cs.

81 {
82 return new Hashtable(104, CaseInsensitiveAscii.StaticInstance)
83 {
84 {
85 "Age",
87 },
88 {
89 "Allow",
91 },
92 {
93 "Accept",
95 },
96 {
97 "Authorization",
98 new HeaderInfo("Authorization", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
99 },
100 {
101 "Accept-Ranges",
102 new HeaderInfo("Accept-Ranges", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
103 },
104 {
105 "Accept-Charset",
106 new HeaderInfo("Accept-Charset", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
107 },
108 {
109 "Accept-Encoding",
110 new HeaderInfo("Accept-Encoding", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
111 },
112 {
113 "Accept-Language",
114 new HeaderInfo("Accept-Language", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
115 },
116 {
117 "Cookie",
119 },
120 {
121 "Connection",
122 new HeaderInfo("Connection", requestRestricted: true, responseRestricted: false, multi: true, s_multiParser)
123 },
124 {
125 "Content-MD5",
126 new HeaderInfo("Content-MD5", requestRestricted: false, responseRestricted: false, multi: false, s_singleParser)
127 },
128 {
129 "Content-Type",
130 new HeaderInfo("Content-Type", requestRestricted: true, responseRestricted: false, multi: false, s_singleParser)
131 },
132 {
133 "Cache-Control",
134 new HeaderInfo("Cache-Control", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
135 },
136 {
137 "Content-Range",
138 new HeaderInfo("Content-Range", requestRestricted: false, responseRestricted: false, multi: false, s_singleParser)
139 },
140 {
141 "Content-Length",
142 new HeaderInfo("Content-Length", requestRestricted: true, responseRestricted: true, multi: false, s_singleParser)
143 },
144 {
145 "Content-Encoding",
146 new HeaderInfo("Content-Encoding", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
147 },
148 {
149 "Content-Language",
150 new HeaderInfo("Content-Language", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
151 },
152 {
153 "Content-Location",
154 new HeaderInfo("Content-Location", requestRestricted: false, responseRestricted: false, multi: false, s_singleParser)
155 },
156 {
157 "Date",
159 },
160 {
161 "ETag",
163 },
164 {
165 "Expect",
167 },
168 {
169 "Expires",
171 },
172 {
173 "From",
175 },
176 {
177 "Host",
179 },
180 {
181 "If-Match",
182 new HeaderInfo("If-Match", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
183 },
184 {
185 "If-Range",
187 },
188 {
189 "If-None-Match",
190 new HeaderInfo("If-None-Match", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
191 },
192 {
193 "If-Modified-Since",
194 new HeaderInfo("If-Modified-Since", requestRestricted: true, responseRestricted: false, multi: false, s_singleParser)
195 },
196 {
197 "If-Unmodified-Since",
198 new HeaderInfo("If-Unmodified-Since", requestRestricted: false, responseRestricted: false, multi: false, s_singleParser)
199 },
200 {
201 "Keep-Alive",
202 new HeaderInfo("Keep-Alive", requestRestricted: false, responseRestricted: true, multi: false, s_singleParser)
203 },
204 {
205 "Location",
207 },
208 {
209 "Last-Modified",
210 new HeaderInfo("Last-Modified", requestRestricted: false, responseRestricted: false, multi: false, s_singleParser)
211 },
212 {
213 "Max-Forwards",
214 new HeaderInfo("Max-Forwards", requestRestricted: false, responseRestricted: false, multi: false, s_singleParser)
215 },
216 {
217 "Pragma",
219 },
220 {
221 "Proxy-Authenticate",
222 new HeaderInfo("Proxy-Authenticate", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
223 },
224 {
225 "Proxy-Authorization",
226 new HeaderInfo("Proxy-Authorization", requestRestricted: false, responseRestricted: false, multi: true, s_multiParser)
227 },
228 {
229 "Proxy-Connection",
230 new HeaderInfo("Proxy-Connection", requestRestricted: true, responseRestricted: false, multi: true, s_multiParser)
231 },
232 {
233 "Range",
235 },
236 {
237 "Referer",
239 },
240 {
241 "Retry-After",
242 new HeaderInfo("Retry-After", requestRestricted: false, responseRestricted: false, multi: false, s_singleParser)
243 },
244 {
245 "Server",
247 },
248 {
249 "Set-Cookie",
251 },
252 {
253 "Set-Cookie2",
254 new HeaderInfo("Set-Cookie2", requestRestricted: false, responseRestricted: false, multi: true, s_setCookieParser)
255 },
256 {
257 "TE",
259 },
260 {
261 "Trailer",
263 },
264 {
265 "Transfer-Encoding",
266 new HeaderInfo("Transfer-Encoding", requestRestricted: true, responseRestricted: true, multi: true, s_multiParser)
267 },
268 {
269 "Upgrade",
271 },
272 {
273 "User-Agent",
274 new HeaderInfo("User-Agent", requestRestricted: true, responseRestricted: false, multi: false, s_singleParser)
275 },
276 {
277 "Via",
279 },
280 {
281 "Vary",
283 },
284 {
285 "Warning",
287 },
288 {
289 "WWW-Authenticate",
290 new HeaderInfo("WWW-Authenticate", requestRestricted: false, responseRestricted: true, multi: true, s_singleParser)
291 }
292 };
293 }
static readonly Func< string, string[]> s_singleParser
static readonly Func< string, string[]> s_multiParser
static readonly Func< string, string[]> s_setCookieParser

References System.Net.HeaderInfoTable.s_multiParser, System.Net.HeaderInfoTable.s_setCookieParser, System.Net.HeaderInfoTable.s_singleParser, and System.Net.CaseInsensitiveAscii.StaticInstance.