Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Cédric Luthi
2011-04-07 16:27:36 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0c53b35f1de8a72e6a841b4854d9e3a79e04a9a8
0c53b35f
1 parent
e71ad045
Hide xmlDocPtr from ASIWebPageRequest header
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
Classes/ASIWebPageRequest/ASIWebPageRequest.h
Classes/ASIWebPageRequest/ASIWebPageRequest.m
Classes/ASIWebPageRequest/ASIWebPageRequest.h
View file @
0c53b35
...
...
@@ -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
;
...
...
Classes/ASIWebPageRequest/ASIWebPageRequest.m
View file @
0c53b35
...
...
@@ -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
])
{
...
...
Please
register
or
login
to post a comment