Commit Graph

2 Commits

Author SHA1 Message Date
Joe Ferris 82d0d6fcc9 Extract handle classes from NetworkAccessManager
NetworkAccessManager was getting pretty complex, and adding something
that modifies or intercepts requests is becoming a common change.

This change introduces a chain of handlers which can modify a request or
return a response of their own.

To start with, this extracts the concerns of fixing missing content
types, setting custom headers, and intercepting blacklisted requests.
2014-11-24 09:52:34 -05:00
Sean Geoghegan f755b1f277 Add blacklisting support to webkit server.
Adds a SetBlacklist command that takes a list of URLs
which will be black listed by the WebKit Server. When
a request is made to one these URLs webkit_server will
intercept the request and return a NoOpReply which contains
no content.
2012-11-15 10:32:06 -05:00