Sha256: 7861ed2ae9f2128d3d0d38b3a263b9324b751d0e53a676191fadfe221623c661

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

#pragma once

#include "net/INetRequest.h"

namespace rho {
namespace net {

class CNetRequestImpl;
class CNetRequest : public INetRequest
{
    DEFINE_LOGCLASS;
    boolean m_bCancel;
public:
    CNetRequestImpl* m_pCurNetRequestImpl;

    CNetRequest(void) : m_pCurNetRequestImpl(null), m_bCancel(false){}
    virtual ~CNetRequest(void){}

    virtual INetResponse* pullData(const String& strUrl, IRhoSession* oSession );
    virtual INetResponse* pushData(const String& strUrl, const String& strBody, IRhoSession* oSession);
    virtual INetResponse* pushFile(const String& strUrl, const String& strFilePath, IRhoSession* oSession, Hashtable<String,String>* pHeaders);
    virtual INetResponse* pullFile(const String& strUrl, const String& strFilePath, IRhoSession* oSession, Hashtable<String,String>* pHeaders);
    virtual INetResponse* pullCookies(const String& strUrl, const String& strBody, IRhoSession* oSession);

    virtual INetResponse* doRequest( const char* method, const String& strUrl, const String& strBody, IRhoSession* oSession, Hashtable<String,String>* pHeaders );

    virtual String resolveUrl(const String& strUrl);

    virtual void cancel();
    virtual boolean isCancelled(){return m_bCancel;}

protected:
};

}
}

extern "C" int rho_net_has_network();

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rhodes-1.5.5 platform/wm/rhodes/rho/net/NetRequest.h
rhodes-1.5.4 platform/wm/rhodes/rho/net/NetRequest.h
rhodes-1.5.3 platform/wm/rhodes/rho/net/NetRequest.h
rhodes-1.5.2 platform/wm/rhodes/rho/net/NetRequest.h
rhodes-1.5.1 platform/wm/rhodes/rho/net/NetRequest.h
rhodes-1.5.0 platform/wm/rhodes/rho/net/NetRequest.h