Skip to content
Snippets Groups Projects
Commit 62d9c7f7 authored by Bryan O'Sullivan's avatar Bryan O'Sullivan
Browse files
Allow for a seperate HTTP proxy for the LLHTTPRequest HTTP client (QAR-318)
parent 1b9fb003
No related branches found
No related tags found
No related merge requests found
......@@ -192,6 +192,11 @@ void LLURLRequest::useProxy(bool use_proxy)
}
}
void LLURLRequest::useProxy(const std::string &proxy)
{
curl_easy_setopt(mDetail->mCurlRequest, CURLOPT_PROXY, proxy.c_str());
}
// virtual
LLIOPipe::EStatus LLURLRequest::handleError(
LLIOPipe::EStatus status,
......
......@@ -166,6 +166,11 @@ public:
*/
void useProxy(bool use_proxy);
/**
* @ brief Set the CURLOPT_PROXY header to the given value.
*/
void useProxy(const std::string& proxy);
public:
/**
* @brief Give this pipe a chance to handle a generated error
......
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