Skip to content
Snippets Groups Projects
Commit 3f08a67d authored by Aaron Brashears's avatar Aaron Brashears
Browse files

Result of svn merge -r84383:84400...

Result of svn merge -r84383:84400 svn+ssh://svn/svn/linden/branches/migrate-start-location-2 intinto release. QAR-458
parent 16f6d79f
No related branches found
No related tags found
No related merge requests found
...@@ -101,4 +101,16 @@ BOOL compare_llsd_with_template( ...@@ -101,4 +101,16 @@ BOOL compare_llsd_with_template(
const LLSD& template_llsd, const LLSD& template_llsd,
LLSD& resultant_llsd); LLSD& resultant_llsd);
// Simple function to copy data out of input & output iterators if
// there is no need for casting.
template<typename Input> LLSD llsd_copy_array(Input iter, Input end)
{
LLSD dest;
for (; iter != end; ++iter)
{
dest.append(*iter);
}
return dest;
}
#endif // LL_LLSDUTIL_H #endif // LL_LLSDUTIL_H
...@@ -77,7 +77,12 @@ class LLHTTPClient ...@@ -77,7 +77,12 @@ class LLHTTPClient
static void postFile(const std::string& url, const LLUUID& uuid, static void postFile(const std::string& url, const LLUUID& uuid,
LLAssetType::EType asset_type, ResponderPtr responder, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); LLAssetType::EType asset_type, ResponderPtr responder, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS);
// Blocking HTTP get that returns an LLSD map of status and body. /**
* @brief Blocking HTTP get that returns an LLSD map of status and body.
*
* @param url the complete serialized (and escaped) url to get
* @return An LLSD of { 'status':status, 'body':payload }
*/
static LLSD blockingGet(const std::string& url); static LLSD blockingGet(const std::string& url);
static void del(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); static void del(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS);
......
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