Made to Order Software Corporation Logo

LLChatLib: LLURLRequestComplete Class Reference

LLURLRequestComplete Class Reference

Class which can optionally be used with an LLURLRequest to get notification when the url request is complete. More...

#include <llurlrequest.h>

Inheritance diagram for LLURLRequestComplete:
Collaboration diagram for LLURLRequestComplete:

List of all members.

Public Member Functions

virtual void header (const std::string &header, const std::string &value)
 Called once for each header received, prior to httpStatus.

virtual void httpStatus (U32 status, const std::string &reason)
 Always called on request completion, prior to complete.

 LLURLRequestComplete ()
virtual void noResponse ()
 This method is called if there was no response.

virtual void response (const LLChannelDescriptors &channels, const buffer_ptr_t &buffer)
 This method is called when we got a valid response.

void responseStatus (EStatus status)
 This method will be called by the LLURLRequest object.

Protected Member Functions

virtual EStatus process_impl (const LLChannelDescriptors &channels, buffer_ptr_t &buffer, bool &eos, LLSD &context, LLPumpIO *pump)
 Process the data in buffer.


Detailed Description

Class which can optionally be used with an LLURLRequest to get notification when the url request is complete.


Constructor & Destructor Documentation

LLURLRequestComplete::LLURLRequestComplete (  ) 

Member Function Documentation

void LLURLRequestComplete::noResponse (  )  [virtual]

This method is called if there was no response.

It is up to class implementers to do something useful here.

void LLURLRequestComplete::response ( const LLChannelDescriptors channels,
const buffer_ptr_t buffer 
) [virtual]

This method is called when we got a valid response.

It is up to class implementers to do something useful here.

void LLURLRequestComplete::responseStatus ( EStatus  status  ) 

This method will be called by the LLURLRequest object.

If this is set to STATUS_OK or STATUS_STOP, then the transfer is asssumed to have worked. This will lead to calling response() on the next call to process(). Otherwise, this object will call noResponse() on the next call to process.

Parameters:
status The status of the URLRequest.

The documentation for this class was generated from the following files:
Generated on Thu Sep 23 17:18:47 2010 for LLChatLib by  doxygen 1.6.3