Skip to content
Permalink
Browse files
Add HTTPHeaderMap::set() overload taking a NSString*
https://bugs.webkit.org/show_bug.cgi?id=158857

Reviewed by Darin Adler.

Add HTTPHeaderMap::set() overloading taking a NSString* in addition to
the one taking a CFStringRef. It is useful for the Cocoa implementation
of ResourceRequest::doUpdateResourceRequest().

* platform/network/HTTPHeaderMap.h:
(WebCore::HTTPHeaderMap::set):


Canonical link: https://commits.webkit.org/176931@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202153 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
cdumez committed Jun 17, 2016
1 parent 95c1a9b commit 10896861fb9035f22d2c6f9bffc66d45434a6b26
Showing with 17 additions and 0 deletions.
  1. +14 −0 Source/WebCore/ChangeLog
  2. +3 −0 Source/WebCore/platform/network/HTTPHeaderMap.h
@@ -1,3 +1,17 @@
2016-06-16 Chris Dumez <cdumez@apple.com>

Add HTTPHeaderMap::set() overload taking a NSString*
https://bugs.webkit.org/show_bug.cgi?id=158857

Reviewed by Darin Adler.

Add HTTPHeaderMap::set() overloading taking a NSString* in addition to
the one taking a CFStringRef. It is useful for the Cocoa implementation
of ResourceRequest::doUpdateResourceRequest().

* platform/network/HTTPHeaderMap.h:
(WebCore::HTTPHeaderMap::set):

2016-06-16 Joseph Pecoraro <pecoraro@apple.com>

Web Inspector: console.profile should use the new Sampling Profiler
@@ -133,6 +133,9 @@ class HTTPHeaderMap {

#if USE(CF)
void set(CFStringRef name, const String& value);
#ifdef __OBJC__
void set(NSString *name, const String& value) { set((__bridge CFStringRef)name, value); }
#endif
#endif

WEBCORE_EXPORT String get(HTTPHeaderName) const;

0 comments on commit 1089686

Please sign in to comment.