private static FormData CreateFormData(Span <char> key, Span <char> value, UploadDataType type, Dictionary <string, string> additionalProperties)
 {
     return(new FormData(
                key.ToString(),
                TrimValue(value.Slice(1).ToString()),
                type,
                additionalProperties.GetValueOrDefault("type"),
                additionalProperties.GetValueOrDefault("filename")));
 }
Example #2
0
 public UploadContent(string content, UploadDataType type)
     : this(null, content, type)
 {
 }
Example #3
0
 public UploadContent(string name, string content, UploadDataType type)
 {
     Content = content;
     Type    = type;
     Name    = name;
 }
Example #4
0
 public UploadData(string name, string content, UploadDataType type, bool isUrlEncoded)
     : base(name, content, type)
 {
     IsUrlEncoded = isUrlEncoded;
 }
Example #5
0
 public UploadData(string content, UploadDataType type)
     : base(content, type)
 {
 }
Example #6
0
 protected UploadContent(string content, UploadDataType type)
     : this(null, content, type)
 {
 }
Example #7
0
 public FormData(string name, string content, UploadDataType type, string contentType, string fileName)
     : base(name, content, type)
 {
     ContentType = contentType;
     FileName    = fileName;
 }
Example #8
0
 public FormData(string name, string content, UploadDataType type)
     : base(name, content, type)
 {
 }