diff options
author | Rider Linden <rider@lindenlab.com> | 2015-06-04 17:36:24 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-06-04 17:36:24 -0700 |
commit | d0d58c41b48f8a2a0e18610b577059ee8419be5c (patch) | |
tree | 459c65b14aab1ced1e55c6051ce7650528ab4236 /indra/llmessage/llcorehttputil.h | |
parent | d034c4f2445eb3095bd17aef421c367bb913af39 (diff) |
Default headers added.
Group manager finished conversion.
Outfit folders coverted.
Diffstat (limited to 'indra/llmessage/llcorehttputil.h')
-rw-r--r-- | indra/llmessage/llcorehttputil.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llmessage/llcorehttputil.h b/indra/llmessage/llcorehttputil.h index 53c8112395..e6c9d2463c 100644 --- a/indra/llmessage/llcorehttputil.h +++ b/indra/llmessage/llcorehttputil.h @@ -286,6 +286,13 @@ private: /// will be automatically pumped and the method will return with an LLSD describing /// the result of the operation. See HttpCoroHandler for a description of the /// decoration done to the returned LLSD. +/// +/// Posting through the adapter will automatically add the following headers to +/// the request if they have not been previously specified in a supplied +/// HttpHeaders object: +/// "Accept=application/llsd+xml" +/// "X-SecondLife-UDP-Listen-Port=###" +/// class HttpCoroutineAdapter { public: @@ -467,6 +474,8 @@ private: static void trivialGetCoro(LLCoros::self& self, std::string url, completionCallback_t success, completionCallback_t failure); static void trivialPostCoro(LLCoros::self& self, std::string url, LLSD postData, completionCallback_t success, completionCallback_t failure); + void checkDefaultHeaders(LLCore::HttpHeaders::ptr_t &headers); + std::string mAdapterName; LLCore::HttpRequest::priority_t mPriority; LLCore::HttpRequest::policy_t mPolicyId; |