API List Intervals

.. add an intervals=true|false to the fetch
   ride list URL to enable fetching of interval
   metrics as well as ride metrics.

   e.g.
   http://localhost:12021/athlete?intervals=true&metrics=Work,IF
This commit is contained in:
Mark Liversedge
2015-09-14 09:28:04 +01:00
parent 4e02b77481
commit dbf240616f
5 changed files with 84 additions and 17 deletions

View File

@@ -90,6 +90,10 @@ public:
void bwrite(QByteArray data);
void flush();
// user data for response
void setUserData(void *here) { userdata_ = here; }
void *userData() { return userdata_; }
/**
Indicates wheter the body has been sent completely. Used by the connection
handler to terminate the body automatically when necessary.
@@ -143,6 +147,8 @@ private:
int buffersize;
QByteArray barry;
void *userdata_;
};
#endif // HTTPRESPONSE_H