Qore Programming Language: include/qore/QoreHTTPClient.h (6585) Source File

Qore Programming Language 0.8.11

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
QoreHTTPClient.h
1 /* -*- mode: c++; indent-tabs-mode: nil -*- */
2 /*
3 QoreHTTPClient.h
4
5 Qore Programming Language
6
7 Copyright (C) 2006 - 2014 QoreTechnologies
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24 /* this file is deprecated; use QoreHttpClientObject instead
25 this class is only kept for ABI compatibility
26 */
27
28 #ifndef QORE_HTTP_CLIENT_H_
29 #define QORE_HTTP_CLIENT_H_
30
31 #include <qore/common.h>
32 #include <qore/AbstractPrivateData.h>
33 #include <qore/QoreThreadLock.h>
34 #include <qore/QoreSocket.h>
35 #include <qore/QoreHttpClientObject.h>
36
37 class Queue;
38
40
42 class QoreHTTPClient : public QoreHttpClientObject {
43 public:
45 DLLEXPORT QoreHTTPClient();
46
48 DLLEXPORT virtual ~QoreHTTPClient();
49
50 DLLEXPORT void setDefaultPath(const char* pth);
51 DLLEXPORT void setDefaultHeaderValue(const char* header, const char* val);
52 DLLEXPORT void addProtocol(const char* prot, int port, bool ssl = false);
53
54 DLLEXPORT int setOptions(const QoreHashNode* opts, ExceptionSink* xsink);
55 DLLEXPORT const QoreEncoding* getEncoding() const;
56
57 DLLEXPORT int connect(ExceptionSink* xsink);
58 DLLEXPORT QoreHashNode* send(const char* meth, const char* path, const QoreHashNode* headers, const void* data, unsigned size, bool getbody, QoreHashNode* info, ExceptionSink* xsink);
59
60 DLLEXPORT void setEventQueue(Queue* cbq, ExceptionSink* xsink);
61 };
62
63 #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 "thread_exit" 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