diff options
author | Rider Linden <none@none> | 2015-03-19 17:01:21 -0700 |
---|---|---|
committer | Rider Linden <none@none> | 2015-03-19 17:01:21 -0700 |
commit | 6b8c814df3141fa705b9921ba0a73aeaa3fe63b6 (patch) | |
tree | cd17b4e5f83159fc0d9f0c2a9ecc537e3413ddc6 /indra/llmessage/llcorehttputil.cpp | |
parent | 6f4d36634e980bb989b9a8b762c3c622804c43dd (diff) |
Adding new HTTP handling for material manager.
Diffstat (limited to 'indra/llmessage/llcorehttputil.cpp')
-rw-r--r-- | indra/llmessage/llcorehttputil.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/indra/llmessage/llcorehttputil.cpp b/indra/llmessage/llcorehttputil.cpp index ee80b0fd94..1a5a6fc75f 100644 --- a/indra/llmessage/llcorehttputil.cpp +++ b/indra/llmessage/llcorehttputil.cpp @@ -88,6 +88,32 @@ HttpHandle requestPostWithLLSD(HttpRequest * request, return handle; } +HttpHandle requestPutWithLLSD(HttpRequest * request, + HttpRequest::policy_t policy_id, + HttpRequest::priority_t priority, + const std::string & url, + const LLSD & body, + HttpOptions * options, + HttpHeaders * headers, + HttpHandler * handler) +{ + HttpHandle handle(LLCORE_HTTP_HANDLE_INVALID); + + BufferArray * ba = new BufferArray(); + BufferArrayStream bas(ba); + LLSDSerialize::toXML(body, bas); + + handle = request->requestPut(policy_id, + priority, + url, + ba, + options, + headers, + handler); + ba->release(); + return handle; +} + std::string responseToString(LLCore::HttpResponse * response) { |