Commit 4fd3f49
Andrei Popescu
Implements merging of same requests in OlpClient. (#1111)
This commit implements merging of same URL requests
for the async OlpClient::CallApi() method by using
the previously created PendingUrlRequest(s) classes.
The merging is only performed in case the request
does not have any body as this could alter the
response.
Additionaly this commit adds support for HEAD and
PATCH requests, already supported by the Network
layer.
OlpClientTests adapted and extended accordingly
with additional test cases. All other tests using
mocked networked changed to returning the callback
asynchronously.
Relates-To: OLPEDGE-1805
Signed-off-by: Andrei Popescu <[email protected]>1 parent 77931b4 commit 4fd3f49
File tree
5 files changed
+1729
-833
lines changed- olp-cpp-sdk-core
- include/olp/core/client
- src/client
- tests/client
5 files changed
+1729
-833
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
56 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
77 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
78 | 92 | | |
79 | 93 | | |
80 | 94 | | |
| |||
0 commit comments