Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(960)

Unified Diff: third_party/WebKit/Source/modules/fetch/Request.cpp

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/Request.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Request.cpp b/third_party/WebKit/Source/modules/fetch/Request.cpp
index 08aff7d0f4da4092d3fc4481149176d6db9e73d5..0db6e5879aaf72bd3ae6387a75efec7c872bd6ba 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -671,6 +671,13 @@ void Request::populateWebServiceWorkerRequest(WebServiceWorkerRequest& webReques
// to plumb this information in to here.
}
+String Request::contentType() const
+{
+ String result;
+ m_request->headerList()->get(HTTPNames::Content_Type, result);
+ return result;
+}
+
String Request::mimeType() const
{
return m_request->mimeType();

Powered by Google App Engine
This is Rietveld 408576698