00001
00002
00003
00004
00005
00006
00007 #import <Foundation/NSHTTPURLProtocol.h>
00008
00009 #import "NSURLAuthenticationChallengeSenderProtocol.h"
00010
00011 @interface NSConnectionHTTPURLProtocol : NSHTTPURLProtocol <NSURLAuthenticationChallengeSender>
00012 {
00013 struct __CFReadStream *readStream;
00014 struct __CFReadStream *proxyStream;
00015 struct __CFArray *proxyArray;
00016 struct __CFHTTPMessage *CFHTTPRequest;
00017 struct __CFHTTPMessage *authenticationRetryResponse;
00018 struct __CFHTTPMessage *authenticationFailureResponse;
00019 struct __CFArray *peerCertificates;
00020 struct __CFArray *clientCertificates;
00021 struct __CFNumber *clientCertificateState;
00022 struct OpaqueSecTrustRef *peerTrust;
00023 CDAnonymousStruct1 connKey;
00024 BOOL authenticationFailed;
00025 BOOL authenticationFailureCount;
00026 BOOL endEncounteredReached;
00027 BOOL loadingHasBeenSuspended;
00028 BOOL firstOnConnection;
00029 BOOL _pad1;
00030 BOOL _pad2;
00031 BOOL _pad3;
00032 }
00033
00034 + (BOOL)canInitWithRequest:(id)fp8;
00035 + (unsigned int)_certificatePolicy;
00036 + (void)_setCertificatePolicy:(unsigned int)fp8;
00037 + (BOOL)_supportsCertificatePolicy:(unsigned int)fp8;
00038 + (void)flushHostCache;
00039 - (id)initWithRequest:(id)fp8 cachedResponse:(id)fp12 client:(id)fp16;
00040 - (void)destroyReadStream;
00041 - (void)deallocateCFNetworkResources;
00042 - (void)dealloc;
00043 - (void)finalize;
00044 - (BOOL)setCertificatePolicyOnStream;
00045 - (void)advanceProxyArray;
00046 - (void)createStream:(int *)fp8;
00047 - (void)continueBeginLoadInBackgroundAfterCreatingHTTPRequest;
00048 - (void)addAcceptFieldsToHeader;
00049 - (void)addAuthenticationFieldsToHeader;
00050 - (void)addConditionalFieldsToHeader;
00051 - (void)addConnectionFieldToHeader;
00052 - (void)addCookieFieldToHeader;
00053 - (void)addHostFieldToHeader;
00054 - (void)addReferrerFieldToHeader;
00055 - (void)addUserAgentFieldToHeader;
00056 - (void)addExtraFieldsToHeader;
00057 - (void)addMessageBodyToRequest;
00058 - (void)buildHTTPRequest;
00059 - (void)startOriginLoad;
00060 - (void)_suspendLoading;
00061 - (void)_resumeLoading;
00062 - (void)stopLoading;
00063 - (void)cleanUpForRetry;
00064 - (void)retryAfterTLSFailure;
00065 - (void)retryAfterAuthenticationFailure:(struct __CFHTTPMessage *)fp8;
00066 - (void)retryAfterConnectingToInternet;
00067 - (void)continueAfterBytesAvailable;
00068 - (void)updateCacheForStreamDisposal;
00069 - (void)setMultiPartDelimiter:(id)fp8;
00070 - (void)continueAfterEndEncountered;
00071 - (BOOL)attemptRetryAfter3xxResponse;
00072 - (void)continueHeaderReadAfterFailureResponse;
00073 - (void)updateConnectionForResponse:(struct __CFHTTPMessage *)fp8;
00074 - (BOOL)shouldFailOn403Response;
00075 - (BOOL)performHTTPHeaderRead;
00076 - (void)setResponseHeaderUsingHTTPResponse:(struct __CFHTTPMessage *)fp8;
00077 - (id)peerCertificateChain;
00078 - (id)peerTrust;
00079 - (id)_clientCertificateChain;
00080 - (id)_clientCertificateState;
00081 - (void)performProxyStreamRead;
00082 - (void)performStreamRead:(struct __CFReadStream *)fp8;
00083 - (void)didAddCredentials:(BOOL)fp8 toRequest:(struct __CFHTTPMessage *)fp12 context:(id)fp16;
00084 - (void)useCredential:(id)fp8 forAuthenticationChallenge:(id)fp12;
00085 - (void)continueWithoutCredentialForAuthenticationChallenge:(id)fp8;
00086 - (void)cancelAuthenticationChallenge:(id)fp8;
00087
00088 @end
00089