diff options
Diffstat (limited to '')
| -rw-r--r-- | src/web_service/web_backend.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/web_service/web_backend.h b/src/web_service/web_backend.h index c637e09df..04121f17e 100644 --- a/src/web_service/web_backend.h +++ b/src/web_service/web_backend.h | |||
| @@ -46,6 +46,29 @@ public: | |||
| 46 | Common::WebResult DeleteJson(const std::string& path, const std::string& data, | 46 | Common::WebResult DeleteJson(const std::string& path, const std::string& data, |
| 47 | bool allow_anonymous); | 47 | bool allow_anonymous); |
| 48 | 48 | ||
| 49 | /** | ||
| 50 | * Gets a plain string from the specified path. | ||
| 51 | * @param path the URL segment after the host address. | ||
| 52 | * @param allow_anonymous If true, allow anonymous unauthenticated requests. | ||
| 53 | * @return the result of the request. | ||
| 54 | */ | ||
| 55 | Common::WebResult GetPlain(const std::string& path, bool allow_anonymous); | ||
| 56 | |||
| 57 | /** | ||
| 58 | * Gets an PNG image from the specified path. | ||
| 59 | * @param path the URL segment after the host address. | ||
| 60 | * @param allow_anonymous If true, allow anonymous unauthenticated requests. | ||
| 61 | * @return the result of the request. | ||
| 62 | */ | ||
| 63 | Common::WebResult GetImage(const std::string& path, bool allow_anonymous); | ||
| 64 | |||
| 65 | /** | ||
| 66 | * Requests an external JWT for the specific audience provided. | ||
| 67 | * @param audience the audience of the JWT requested. | ||
| 68 | * @return the result of the request. | ||
| 69 | */ | ||
| 70 | Common::WebResult GetExternalJWT(const std::string& audience); | ||
| 71 | |||
| 49 | private: | 72 | private: |
| 50 | struct Impl; | 73 | struct Impl; |
| 51 | std::unique_ptr<Impl> impl; | 74 | std::unique_ptr<Impl> impl; |