LLHTTPClient Class Reference

#include <llhttpclient.h>

List of all members.

Public Types

typedef boost::intrusive_ptr<
Responder
ResponderPtr

Static Public Member Functions

static void get (const std::string &url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
static void get (const std::string &url, ResponderPtr, const LLSD &headers, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
static void get (const std::string &url, const LLSD &query, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
static void get (const std::string &url, const LLSD &query, ResponderPtr, const LLSD &headers, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
static void put (const std::string &url, const LLSD &body, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
 non-blocking
static void post (const std::string &url, const LLSD &body, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
static void post (const std::string &url, const U8 *data, S32 size, ResponderPtr responder, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
static void postFile (const std::string &url, const std::string &filename, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
static void postFile (const std::string &url, const LLUUID &uuid, LLAssetType::EType asset_type, ResponderPtr responder, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
static LLSD blockingGet (const std::string &url)
static void del (const std::string &url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS)
 sends a DELETE method, but we can't call it delete in c++
static void setPump (LLPumpIO &pump)
 must be called before any of the above calls are made
static bool hasPump ()
 for testing
static void setCABundle (const std::string &caBundle)

Classes

class  Responder


Detailed Description

Definition at line 54 of file llhttpclient.h.


Member Typedef Documentation

typedef boost::intrusive_ptr<Responder> LLHTTPClient::ResponderPtr

Definition at line 90 of file llhttpclient.h.


Member Function Documentation

LLSD LLHTTPClient::blockingGet ( const std::string &  url  )  [static]

Definition at line 387 of file llhttpclient.cpp.

References LLHTTPBuffer::asLLSD(), LLHTTPBuffer::asString(), LLHTTPBuffer::curl_write(), LLSD::emptyMap(), llendl, llinfos, llwarns, and S32.

void LLHTTPClient::del ( const std::string &  url,
ResponderPtr  ,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

sends a DELETE method, but we can't call it delete in c++

Definition at line 452 of file llhttpclient.cpp.

References LLURLRequest::HTTP_DELETE, NULL, and request().

void LLHTTPClient::get ( const std::string &  url,
const LLSD query,
ResponderPtr  ,
const LLSD headers,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

Definition at line 338 of file llhttpclient.cpp.

References LLURI::asString(), LLURI::buildHTTP(), LLSD::emptyArray(), and get().

void LLHTTPClient::get ( const std::string &  url,
const LLSD query,
ResponderPtr  ,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

Definition at line 346 of file llhttpclient.cpp.

References get().

void LLHTTPClient::get ( const std::string &  url,
ResponderPtr  ,
const LLSD headers,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

Definition at line 328 of file llhttpclient.cpp.

References LLURLRequest::HTTP_GET, NULL, and request().

void LLHTTPClient::get ( const std::string &  url,
ResponderPtr  ,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

Definition at line 333 of file llhttpclient.cpp.

Referenced by LLFloaterNetwork2080::doSelectedPageCommand(), get(), idle_startup(), LLPanelLogin::LLPanelLogin(), LLFloaterTOS::postBuild(), LLFloaterNetwork2080::requestChildren(), LLFloaterNetwork2080::requestRoot(), and LLFloaterNetwork2080::selectionCallback().

bool LLHTTPClient::hasPump (  )  [static]

for testing

Definition at line 475 of file llhttpclient.cpp.

References NULL, and theClientPump.

Referenced by request().

void LLHTTPClient::post ( const std::string &  url,
const U8 data,
S32  size,
ResponderPtr  responder,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

Definition at line 447 of file llhttpclient.cpp.

References LLURLRequest::HTTP_POST, and request().

void LLHTTPClient::post ( const std::string &  url,
const LLSD body,
ResponderPtr  ,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

Definition at line 442 of file llhttpclient.cpp.

References LLURLRequest::HTTP_POST, and request().

Referenced by copy_inventory_from_notecard(), LLPanelPlace::displayParcelInfo(), LLTextureFetchWorker::doWork(), LLVoiceChannelGroup::getChannelInfo(), LLFloaterIMPanel::inviteToSession(), LLIMMgr::inviteUserResponse(), LLVoiceClient::parcelChanged(), LLViewerChatterBoxInvitation::post(), LLVoiceClient::requestVoiceAccountProvision(), LLPreviewNotecard::saveIfNeeded(), LLPreviewGesture::saveIfNeeded(), LLHTTPSender::send(), LLCapHTTPSender::send(), send_stats(), LLPanelClassified::sendClassifiedClickMessage(), LLPanelClassified::sendClassifiedInfoRequest(), LLWorldMap::sendMapLayerRequest(), LLFloaterPostcard::sendPostcard(), LLFloaterReporter::sendReportViaCaps(), LLPanelRegionGeneralInfo::sendUpdate(), LLViewerRegion::setSeedCapability(), upload_new_resource(), LLLiveLSLEditor::uploadAssetViaCaps(), and LLPreviewLSL::uploadAssetViaCaps().

void LLHTTPClient::postFile ( const std::string &  url,
const LLUUID uuid,
LLAssetType::EType  asset_type,
ResponderPtr  responder,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

Definition at line 463 of file llhttpclient.cpp.

References LLURLRequest::HTTP_POST, and request().

void LLHTTPClient::postFile ( const std::string &  url,
const std::string &  filename,
ResponderPtr  ,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

Definition at line 458 of file llhttpclient.cpp.

References LLURLRequest::HTTP_POST, and request().

Referenced by LLAssetUploadResponder::uploadUpload().

void LLHTTPClient::put ( const std::string &  url,
const LLSD body,
ResponderPtr  ,
const F32  timeout = HTTP_REQUEST_EXPIRY_SECS 
) [static]

non-blocking

Definition at line 437 of file llhttpclient.cpp.

References LLURLRequest::HTTP_PUT, and request().

void LLHTTPClient::setCABundle ( const std::string &  caBundle  )  [static]

use this root CA bundle when checking SSL connections defaults to the standard system root CA bundle

See also:
LLURLRequest::checkRootCertificate()

Definition at line 480 of file llhttpclient.cpp.

References gCABundle.

Referenced by main_loop().

void LLHTTPClient::setPump ( LLPumpIO pump  )  [static]

must be called before any of the above calls are made

Definition at line 470 of file llhttpclient.cpp.

References theClientPump.

Referenced by tut::HTTPClientTestData::HTTPClientTestData(), and main_loop().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:24 2010 for Second Life Viewer by  doxygen 1.4.7