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

◆ MultipartContent() [3/3]

System.Net.Http.MultipartContent.MultipartContent ( string subtype,
string boundary )
inline

Definition at line 272 of file MultipartContent.cs.

273 {
274 if (string.IsNullOrWhiteSpace(subtype))
275 {
277 }
280 string text = boundary;
281 if (!text.StartsWith('"'))
282 {
283 text = "\"" + text + "\"";
284 }
286 {
287 Parameters =
288 {
289 new NameValueHeaderValue("boundary", text)
290 }
291 };
292 base.Headers.ContentType = contentType;
294 }
readonly List< HttpContent > _nestedContent
static void ValidateBoundary(string boundary)
static string net_http_argument_empty_string
Definition SR.cs:52
Definition SR.cs:7

References System.Net.Http.MultipartContent._boundary, System.Net.Http.MultipartContent._nestedContent, System.SR.net_http_argument_empty_string, System.text, and System.Net.Http.MultipartContent.ValidateBoundary().