29 |
29 |
30 def createRequest(self, op, request, outgoingData=None): |
30 def createRequest(self, op, request, outgoingData=None): |
31 """ |
31 """ |
32 Protected method to create a request. |
32 Protected method to create a request. |
33 |
33 |
34 @param op the operation to be performed (QNetworkAccessManager.Operation) |
34 @param op the operation to be performed |
|
35 (QNetworkAccessManager.Operation) |
35 @param request reference to the request object (QNetworkRequest) |
36 @param request reference to the request object (QNetworkRequest) |
36 @param outgoingData reference to an IODevice containing data to be sent |
37 @param outgoingData reference to an IODevice containing data to be sent |
37 (QIODevice) |
38 (QIODevice) |
38 @return reference to the created reply object (QNetworkReply) |
39 @return reference to the created reply object (QNetworkReply) |
39 """ |
40 """ |
46 def setAuthenticator(self, realm, authenticator): |
47 def setAuthenticator(self, realm, authenticator): |
47 """ |
48 """ |
48 Public method to add or change an authenticator in our cache. |
49 Public method to add or change an authenticator in our cache. |
49 |
50 |
50 @param realm name of the realm the authenticator belongs to (string) |
51 @param realm name of the realm the authenticator belongs to (string) |
51 @param authenticator authenticator to add to the cache (QAuthenticator). |
52 @param authenticator authenticator to add to the cache |
52 If it is None, the entry will be deleted from the cache. |
53 (QAuthenticator). If it is None, the entry will be deleted from |
|
54 the cache. |
53 """ |
55 """ |
54 if realm: |
56 if realm: |
55 if authenticator: |
57 if authenticator: |
56 self.__authenticatorCache[realm] = authenticator |
58 self.__authenticatorCache[realm] = authenticator |
57 else: |
59 else: |