All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
QoreHTTPClient.h
/* -*- mode: c++; indent-tabs-mode: nil -*- */
/*
QoreHTTPClient.h
Qore Programming Language
Copyright (C) 2006 - 2013 QoreTechnologies
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* this file is deprecated; use QoreHttpClientObject instead
this class is only kept for ABI compatibility
*/
#ifndef QORE_HTTP_CLIENT_H_
#define QORE_HTTP_CLIENT_H_
#include <qore/common.h>
#include <qore/AbstractPrivateData.h>
#include <qore/QoreThreadLock.h>
#include <qore/QoreSocket.h>
#include <qore/QoreHttpClientObject.h>
class Queue;
class QoreHTTPClient : public QoreHttpClientObject {
public:
DLLEXPORT QoreHTTPClient();
DLLEXPORT virtual ~QoreHTTPClient();
DLLEXPORT void setDefaultPath(const char* pth);
DLLEXPORT void setDefaultHeaderValue(const char* header, const char* val);
DLLEXPORT void addProtocol(const char* prot, int port, bool ssl = false);
DLLEXPORT int setOptions(const QoreHashNode* opts, ExceptionSink* xsink);
DLLEXPORT const QoreEncoding* getEncoding() const;
DLLEXPORT int connect(ExceptionSink* xsink);
DLLEXPORT QoreHashNode* send(const char* meth, const char* path, const QoreHashNode* headers, const void* data, unsigned size, bool getbody, QoreHashNode* info, ExceptionSink* xsink);
DLLEXPORT void setEventQueue(Queue* cbq, ExceptionSink* xsink);
};
#endif
QoreEncoding
defines string encoding functions in Qore
Definition: QoreEncoding.h:72
QoreHashNode
This is the hash or associative list container type in Qore, dynamically allocated only...
Definition: QoreHashNode.h:41
QoreHTTPClient::QoreHTTPClient
DLLEXPORT QoreHTTPClient()
creates the QoreHTTPClient object
QoreHTTPClient::~QoreHTTPClient
virtual DLLEXPORT ~QoreHTTPClient()
destroys the object and frees all associated memory
ExceptionSink
container for holding Qore-language exception information and also for registering a &quot;thread_exit&quot; ca...
Definition: ExceptionSink.h:35
QoreHttpClientObject
provides a way to communicate with HTTP servers using Qore data structures
Definition: QoreHttpClientObject.h:42
common.h
QoreHTTPClient
provides a way to communicate with HTTP servers using Qore data structures
Definition: QoreHTTPClient.h:42