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"))); }
public UploadContent(string content, UploadDataType type) : this(null, content, type) { }
public UploadContent(string name, string content, UploadDataType type) { Content = content; Type = type; Name = name; }
public UploadData(string name, string content, UploadDataType type, bool isUrlEncoded) : base(name, content, type) { IsUrlEncoded = isUrlEncoded; }
public UploadData(string content, UploadDataType type) : base(content, type) { }
protected UploadContent(string content, UploadDataType type) : this(null, content, type) { }
public FormData(string name, string content, UploadDataType type, string contentType, string fileName) : base(name, content, type) { ContentType = contentType; FileName = fileName; }
public FormData(string name, string content, UploadDataType type) : base(name, content, type) { }