Support file upload in server side.

This commit is contained in:
Chunting Gu
2019-04-11 17:35:09 +08:00
parent 5f9532759e
commit 5c465a1e2d
22 changed files with 828 additions and 196 deletions
+2
View File
@@ -115,6 +115,7 @@ const char* const kAuthorization = "Authorization";
const char* const kContentType = "Content-Type";
const char* const kContentLength = "Content-Length";
const char* const kContentEncoding = "Content-Encoding";
const char* const kContentDisposition = "Content-Disposition";
const char* const kConnection = "Connection";
const char* const kTransferEncoding = "Transfer-Encoding";
const char* const kAccept = "Accept";
@@ -131,6 +132,7 @@ namespace media_types {
const char* const kApplicationJson = "application/json";
const char* const kApplicationSoapXml = "application/soap+xml";
const char* const kTextPlain = "text/plain";
const char* const kTextXml = "text/xml";
// Get media type from file extension.