资源描述:
《makefile 攻略》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Makefile攻略之platform/network/:ClassAuthenticationChallengeBase:权限证明基类。AuthenticationChallengeBase(constProtectionSpace&protectionSpace,constCredential&proposedCredential,unsignedpreviousFailureCount,constResourceResponse&response,constResourceError&error);ClassCredential:证书。Creden
2、tialPersistence:CredentialPersistenceNone,CredentialPersistenceForSession,CredentialPersistencePermanent.CredentialType:CredentialTypePassword,CredentialTypeClientCertificate.ClassFormData:表格数据。VoidappendData(constvoid*data,size_t);VoidappendFile(constString&filename,boolshouldGe
3、nerateFile=false);…………………….Vertorm_elements;ClassFormDataBuilder:构造表格数据。VoidsetIsPostMethod(boolvalue);VoidsetIsMultiPartForm(boolvalue);VoidsetEncodingType(constString&value);VoidsetAcceptCharset(constString&value);StaticVertorgenerateUniqueBoundaryString(
4、){TheRFC2046specsaysthealphanumericcharactersplusthefollowingcharactersarelegalforboundaries:‘()+_,-./:=?。Howeverthefollowingcharacters,thoughlegal,causesomesitestofail:(),./:=+。Notethatouralgorithmmakesittwiceasmuchlikelyfor‘A’or‘B’toappearintheboundarystring,because0x41and0x42a
5、representinthebelowarraytwice.}ClassHTTPHeaderMap:HTTP头。TypedefVector>CrossThreadHTTPHeaderMapData;HTTPParsers.h:BoolparseHTTPRefresh(constString&refresh,boolfromHttpEquivMeta,double&delay,String&url);DoubleparseDate(cosntString&);StrngfilenameFromHTTPCon
6、tentDisposition(constString&);StringextractMIMETypeFromMediaType(constString&);StringextractCharsetFromMediaType(constString&);ClassNetworkStateNotifier:网络状态改变通知。VoidNetworkStateNotifier::setNetworkStateChangedFunction(void(*function)());VoidNetworkStateNotifier::netwrokStateChan
7、ge(boolonline);VoidNetworkStateNotifier::networkTypeChange(Connection::ConnectionTypetype);ClassProtectionSpace:保护空间,意思还不明朗。ProtectionSpaceServerType:ProtectionSpaceServerHTTP,ProtectionSpaceServerHTTPS,ProtectionSpaceServerFTP,ProtectionSpaceServerFTPS,ProtectionSpaceProxyHTTP,P
8、rotectionSpaceProxyHTTPS,ProtectionSpace