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