Cédric Luthi

Hide xmlDocPtr from ASIWebPageRequest header

... ... @@ -11,10 +11,6 @@
// Known issue: You cannot use startSychronous with an ASIWebPageRequest
#import "ASIHTTPRequest.h"
#import <libxml/HTMLparser.h>
#import <libxml/xmlsave.h>
#import <libxml/xpath.h>
#import <libxml/xpathInternals.h>
@class ASINetworkQueue;
... ... @@ -51,9 +47,6 @@ typedef enum _ASIURLReplacementMode {
// This dictionary stores a list of external resources to download, along with their content-type data or a path to the data
NSMutableDictionary *resourceList;
// Used internally for parsing HTML (with libxml)
xmlDocPtr doc;
// If the response is an HTML or CSS file, this will be set so the content can be correctly parsed when it has finished fetching external resources
ASIWebContentType webContentType;
... ...
... ... @@ -10,6 +10,10 @@
#import "ASIWebPageRequest.h"
#import "ASINetworkQueue.h"
#import <CommonCrypto/CommonHMAC.h>
#import <libxml/HTMLparser.h>
#import <libxml/xmlsave.h>
#import <libxml/xpath.h>
#import <libxml/xpathInternals.h>
// An xPath query that controls the external resources ASIWebPageRequest will fetch
// By default, it will fetch stylesheets, javascript files, images, frames, iframes, and html 5 video / audio
... ... @@ -33,10 +37,14 @@ static NSMutableArray *requestsUsingXMLParser = nil;
@property (retain, nonatomic) ASINetworkQueue *externalResourceQueue;
@property (retain, nonatomic) NSMutableDictionary *resourceList;
@property (assign, nonatomic) xmlDocPtr doc; // Declared as @property in order to get a "free" ivar and hide it from the header
@end
@implementation ASIWebPageRequest
@synthesize doc;
+ (void)initialize
{
if (self == [ASIWebPageRequest class]) {
... ...