123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace BestHTTP.Forms
- {
-
-
-
- public class HTTPFieldData
- {
-
-
-
- public string Name { get; set; }
-
-
-
- public string FileName { get; set; }
-
-
-
- public string MimeType { get; set; }
-
-
-
- public Encoding Encoding { get; set; }
-
-
-
- public string Text { get; set; }
-
-
-
- public byte[] Binary { get; set; }
-
-
-
- public byte[] Payload
- {
- get
- {
- if (Binary != null)
- return Binary;
- if (Encoding == null)
- Encoding = Encoding.UTF8;
- return Binary = Encoding.GetBytes(Text);
- }
- }
- }
- }
|