File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
src/AudioTools/CoreAudio/AudioHttp Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,32 @@ class URLStreamBufferedT : public AbstractURLStream {
244
244
// / (Re-)defines the client
245
245
void setClient (Client &client) override { urlStream.setClient (client); }
246
246
247
+ // / Add Connection: close to request header
248
+ void setConnectionClose (bool flag) override {
249
+ urlStream.setConnectionClose (flag);
250
+ }
251
+
252
+ // / Provides the url as string
253
+ const char * urlStr () override {
254
+ return urlStream.urlStr ();
255
+ }
256
+
257
+ // / Total amout of data that was consumed so far
258
+ size_t totalRead () override {
259
+ return urlStream.totalRead ();
260
+ }
261
+
262
+ // / Provides the reported data size from the http reply
263
+ int contentLength () override {
264
+ return urlStream.contentLength ();
265
+ }
266
+
267
+ // / Waits the indicated time for the data to be available
268
+ // / waits for some data - returns false if the request has failed
269
+ bool waitForData (int timeout) override {
270
+ return urlStream.waitForData (timeout);
271
+ }
272
+
247
273
protected:
248
274
BufferedTaskStream taskStream;
249
275
T urlStream;
You can’t perform that action at this time.
0 commit comments