Bug 8019
| Summary: | WebCore needs cross platform HttpRequest class | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Justin Haygood <jhaygood> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ap, bugs-webkit, eric, ian, mjs, webkit |
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | PC | ||
| OS: | Windows Server 2003 | ||
| Bug Depends on: | |||
| Bug Blocks: | 3356 | ||
Justin Haygood
WebCore could really use a cross-platform HttpRequest class for network access that abstracts away:
* HTTP
* HTTPS
* FTP optionally, then it would have to be changed to more URLRequest
Http Properties to be set:
* URL
* Method (GET, POST, HEAD)
* Headers (User Agent) -- both before and after sending request
* Cookies -- both before and after sending request
Why:
* This would simplify porting efforts (specially for Windows, and possibly Linux) and get rid of alot of redundant code, when all consumers could access this base class. This would also guarantee specific functionality, and simplify implementation of it
PROS:
* Simpler
* More Portable
* Less Redundant Code
CONS:
* Lots of Refactoring Possibly (But alot of stuff has been refactored recently anyway)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
This was implemented, see ResourceRequest.h