Overview
Comment: | OFHTTPClient: Rename to -[asyncPerformRequest:]
This makes it clear that the request is handled asynchronously and makes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
0319fe1eb973f289a45d83f0a8db1514 |
User & Date: | js on 2017-09-24 21:00:09 |
Other Links: | manifest | tags |
Context
2017-09-25
| ||
00:02 | OFObject: Add -[performSelector*] with 4 objects check-in: f714793eb4 user: js tags: trunk | |
2017-09-24
| ||
21:00 | OFHTTPClient: Rename to -[asyncPerformRequest:] check-in: 0319fe1eb9 user: js tags: trunk | |
17:35 | OFUDPSocket: Add support for async sending check-in: 842c55dd83 user: js tags: trunk | |
Changes
Modified src/OFHTTPClient.h from [cce5af40ca] to [e0785471fb].
︙ | |||
155 156 157 158 159 160 161 | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | - + - - + + | * @return A new, autoreleased OFHTTPClient */ + (instancetype)client; /*! * @brief Asynchronously performs the specified HTTP request. */ |
Modified src/OFHTTPClient.m from [390eee68b1] to [3d75f15cfb].
︙ | |||
374 375 376 377 378 379 380 | 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | - - + + | } [newRequest setURL: newURL]; [newRequest setHeaders: newHeaders]; _client->_inProgress = false; |
︙ | |||
911 912 913 914 915 916 917 | 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 | - + - - + + - - + + | - (void)dealloc { [self close]; [super dealloc]; } |
︙ |
Modified tests/OFHTTPClientTests.m from [a00a732f44] to [1220c3f5ba].
︙ | |||
118 119 120 121 122 123 124 | 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | - + - + | [cond wait]; [cond unlock]; URL = [OFURL URLWithString: [OFString stringWithFormat: @"http://127.0.0.1:%" @PRIu16 "/foo", server->_port]]; |
︙ |
Modified utils/ofhttp/OFHTTP.m from [725d764e14] to [7ea7ca97c5].
︙ | |||
904 905 906 907 908 909 910 | 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 | - + | if (!_quiet) [of_stdout writeFormat: @"⠒ %@", [URL string]]; request = [OFHTTPRequest requestWithURL: URL]; [request setHeaders: clientHeaders]; [request setMethod: OF_HTTP_REQUEST_METHOD_HEAD]; |
︙ | |||
945 946 947 948 949 950 951 | 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 | - + | } request = [OFHTTPRequest requestWithURL: URL]; [request setHeaders: clientHeaders]; [request setMethod: _method]; [request setBody: _body]; |