diff options
Diffstat (limited to 'indra/llmessage')
| -rw-r--r-- | indra/llmessage/llcorehttputil.cpp | 12 | ||||
| -rw-r--r-- | indra/llmessage/llcorehttputil.h | 13 | 
2 files changed, 24 insertions, 1 deletions
diff --git a/indra/llmessage/llcorehttputil.cpp b/indra/llmessage/llcorehttputil.cpp index 001df9e385..c4a7e9040a 100644 --- a/indra/llmessage/llcorehttputil.cpp +++ b/indra/llmessage/llcorehttputil.cpp @@ -256,7 +256,7 @@ void HttpCoroHandler::onCompleted(LLCore::HttpHandle handle, LLCore::HttpRespons      buildStatusEntry(response, status, result); -#if 0 +#if 1      // commenting out, but keeping since this can be useful for debugging      if (!status)      { @@ -608,6 +608,16 @@ LLSD HttpCoroutineAdapter::postAndYield(LLCoros::self & self, LLCore::HttpReques      return postAndYield_(self, request, url, rawbody, options, headers, httpHandler);  } +LLSD HttpCoroutineAdapter::postRawAndYield(LLCoros::self & self, LLCore::HttpRequest::ptr_t request, +    const std::string & url, LLCore::BufferArray::ptr_t rawbody, +    LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers) +{ +    LLEventStream  replyPump(mAdapterName, true); +    HttpCoroHandler::ptr_t httpHandler = HttpCoroHandler::ptr_t(new HttpCoroRawHandler(replyPump)); + +    return postAndYield_(self, request, url, rawbody, options, headers, httpHandler); +} +  LLSD HttpCoroutineAdapter::postAndYield_(LLCoros::self & self, LLCore::HttpRequest::ptr_t &request,      const std::string & url, LLCore::BufferArray::ptr_t &rawbody,      LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers, diff --git a/indra/llmessage/llcorehttputil.h b/indra/llmessage/llcorehttputil.h index d6219318f9..213610e58e 100644 --- a/indra/llmessage/llcorehttputil.h +++ b/indra/llmessage/llcorehttputil.h @@ -334,6 +334,19 @@ public:              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions(), false), headers);      } +    LLSD postRawAndYield(LLCoros::self & self, LLCore::HttpRequest::ptr_t request, +        const std::string & url, LLCore::BufferArray::ptr_t rawbody, +        LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions(), false), +        LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders(), false)); + +    LLSD postRawAndYield(LLCoros::self & self, LLCore::HttpRequest::ptr_t &request, +        const std::string & url, LLCore::BufferArray::ptr_t &rawbody, +        LLCore::HttpHeaders::ptr_t &headers) +    { +        return postRawAndYield(self, request, url, rawbody, +            LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions(), false), headers); +    } +      /// Execute a Put transaction on the supplied URL and yield execution of       /// the coroutine until a result is available.      ///   | 
