http.get is now operational

This commit is contained in:
2022-05-06 13:16:27 -04:00
parent c41d0522df
commit 0ee4167772
7 changed files with 174 additions and 98 deletions

View File

@@ -206,8 +206,9 @@ public:
void update_source(const util::LuaSourceVec &source);
// Supply an HTTP response to an outstanding HTTP request.
void http_response(int64_t request_id, const HttpInResponse &response);
void http_response(const HttpClientResponse &response);
void http_responses(const HttpClientResponseVec &responses);
// Abort all HTTP requests. This is typically used after
// reloading a world from a save-game. The http requests that
// were in progress are long-since dead.
@@ -230,7 +231,7 @@ public:
// Get a table showing all outstanding HTTP requests.
//
const HttpOutRequestMap &http_requests() const { return http_requests_; }
const HttpClientRequestMap &http_requests() const { return http_requests_; }
// Serialize and deserialize.
//
@@ -515,7 +516,7 @@ private:
// Outstanding HTTP requests, indexed by request ID.
// Authoritative models only.
//
HttpOutRequestMap http_requests_;
HttpClientRequestMap http_requests_;
// Serialized snapshot of world model.
//