Skip to content
Snippets Groups Projects
Commit d24ff0bf authored by Merov Linden's avatar Merov Linden
Browse files

DD-22 : WIP : Implement putRaw() on LLHTTPClient

parent 1a837c57
No related branches found
No related tags found
No related merge requests found
......@@ -565,6 +565,17 @@ void LLHTTPClient::put(
request(url, LLURLRequest::HTTP_PUT, new LLSDInjector(body), responder, timeout, headers);
}
void LLHTTPClient::putRaw(
const std::string& url,
const U8* data,
S32 size,
ResponderPtr responder,
const LLSD& headers,
const F32 timeout)
{
request(url, LLURLRequest::HTTP_PUT, new RawInjector(data, size), responder, timeout, headers);
}
void LLHTTPClient::post(
const std::string& url,
const LLSD& body,
......
......@@ -79,6 +79,14 @@ public:
ResponderPtr,
const LLSD& headers = LLSD(),
const F32 timeout=HTTP_REQUEST_EXPIRY_SECS);
static void putRaw(
const std::string& url,
const U8* data,
S32 size,
ResponderPtr responder,
const LLSD& headers = LLSD(),
const F32 timeout=HTTP_REQUEST_EXPIRY_SECS);
static void getHeaderOnly(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS,
bool follow_redirects = true);
static void getHeaderOnly(const std::string& url, ResponderPtr, const LLSD& headers,
......
......@@ -906,6 +906,7 @@ bool LLMarketplaceData::deleteListing(const LLUUID& folder_id)
// Listing doesn't exist -> exit with error
return false;
}
// *TODO : Implement SLM API for deleting SLM records once it exists there...
mMarketplaceItems.erase(folder_id);
update_marketplace_category(folder_id);
gInventory.notifyObservers();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment