SNMP agent attached to SPI slave

Dependencies:   mbed

Committer:
lorcansmith
Date:
Mon Aug 13 15:07:40 2012 +0000
Revision:
0:2a53a4c3238c
v1.1 release includes ioAlarm traps

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lorcansmith 0:2a53a4c3238c 1
lorcansmith 0:2a53a4c3238c 2 /*
lorcansmith 0:2a53a4c3238c 3 Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com)
lorcansmith 0:2a53a4c3238c 4
lorcansmith 0:2a53a4c3238c 5 Permission is hereby granted, free of charge, to any person obtaining a copy
lorcansmith 0:2a53a4c3238c 6 of this software and associated documentation files (the "Software"), to deal
lorcansmith 0:2a53a4c3238c 7 in the Software without restriction, including without limitation the rights
lorcansmith 0:2a53a4c3238c 8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
lorcansmith 0:2a53a4c3238c 9 copies of the Software, and to permit persons to whom the Software is
lorcansmith 0:2a53a4c3238c 10 furnished to do so, subject to the following conditions:
lorcansmith 0:2a53a4c3238c 11
lorcansmith 0:2a53a4c3238c 12 The above copyright notice and this permission notice shall be included in
lorcansmith 0:2a53a4c3238c 13 all copies or substantial portions of the Software.
lorcansmith 0:2a53a4c3238c 14
lorcansmith 0:2a53a4c3238c 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
lorcansmith 0:2a53a4c3238c 16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
lorcansmith 0:2a53a4c3238c 17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
lorcansmith 0:2a53a4c3238c 18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
lorcansmith 0:2a53a4c3238c 19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
lorcansmith 0:2a53a4c3238c 20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
lorcansmith 0:2a53a4c3238c 21 THE SOFTWARE.
lorcansmith 0:2a53a4c3238c 22 */
lorcansmith 0:2a53a4c3238c 23
lorcansmith 0:2a53a4c3238c 24 /** \file
lorcansmith 0:2a53a4c3238c 25 HTTP Client header file
lorcansmith 0:2a53a4c3238c 26 */
lorcansmith 0:2a53a4c3238c 27
lorcansmith 0:2a53a4c3238c 28 #ifndef HTTP_CLIENT_H
lorcansmith 0:2a53a4c3238c 29 #define HTTP_CLIENT_H
lorcansmith 0:2a53a4c3238c 30
lorcansmith 0:2a53a4c3238c 31 class HTTPData;
lorcansmith 0:2a53a4c3238c 32
lorcansmith 0:2a53a4c3238c 33 #include "core/net.h"
lorcansmith 0:2a53a4c3238c 34 #include "api/TCPSocket.h"
lorcansmith 0:2a53a4c3238c 35 #include "api/DNSRequest.h"
lorcansmith 0:2a53a4c3238c 36 #include "HTTPData.h"
lorcansmith 0:2a53a4c3238c 37 #include "mbed.h"
lorcansmith 0:2a53a4c3238c 38
lorcansmith 0:2a53a4c3238c 39 #include <string>
lorcansmith 0:2a53a4c3238c 40 using std::string;
lorcansmith 0:2a53a4c3238c 41
lorcansmith 0:2a53a4c3238c 42 #include <map>
lorcansmith 0:2a53a4c3238c 43 using std::map;
lorcansmith 0:2a53a4c3238c 44
lorcansmith 0:2a53a4c3238c 45 ///HTTP client results
lorcansmith 0:2a53a4c3238c 46 enum HTTPResult
lorcansmith 0:2a53a4c3238c 47 {
lorcansmith 0:2a53a4c3238c 48 HTTP_OK, ///<Success
lorcansmith 0:2a53a4c3238c 49 HTTP_PROCESSING, ///<Processing
lorcansmith 0:2a53a4c3238c 50 HTTP_PARSE, ///<URI Parse error
lorcansmith 0:2a53a4c3238c 51 HTTP_DNS, ///<Could not resolve name
lorcansmith 0:2a53a4c3238c 52 HTTP_PRTCL, ///<Protocol error
lorcansmith 0:2a53a4c3238c 53 HTTP_NOTFOUND, ///<HTTP 404 Error
lorcansmith 0:2a53a4c3238c 54 HTTP_REFUSED, ///<HTTP 403 Error
lorcansmith 0:2a53a4c3238c 55 HTTP_ERROR, ///<HTTP xxx error
lorcansmith 0:2a53a4c3238c 56 HTTP_TIMEOUT, ///<Connection timeout
lorcansmith 0:2a53a4c3238c 57 HTTP_CONN ///<Connection error
lorcansmith 0:2a53a4c3238c 58 };
lorcansmith 0:2a53a4c3238c 59
lorcansmith 0:2a53a4c3238c 60 #include "core/netservice.h"
lorcansmith 0:2a53a4c3238c 61
lorcansmith 0:2a53a4c3238c 62 ///A simple HTTP Client
lorcansmith 0:2a53a4c3238c 63 /**
lorcansmith 0:2a53a4c3238c 64 The HTTPClient is composed of:
lorcansmith 0:2a53a4c3238c 65 - The actual client (HTTPClient)
lorcansmith 0:2a53a4c3238c 66 - Classes that act as a data repository, each of which deriving from the HTTPData class (HTTPText for short text content, HTTPFile for file I/O, HTTPMap for key/value pairs, and HTTPStream for streaming purposes)
lorcansmith 0:2a53a4c3238c 67 */
lorcansmith 0:2a53a4c3238c 68 class HTTPClient : protected NetService
lorcansmith 0:2a53a4c3238c 69 {
lorcansmith 0:2a53a4c3238c 70 public:
lorcansmith 0:2a53a4c3238c 71 ///Instantiates the HTTP client
lorcansmith 0:2a53a4c3238c 72 HTTPClient();
lorcansmith 0:2a53a4c3238c 73 virtual ~HTTPClient();
lorcansmith 0:2a53a4c3238c 74
lorcansmith 0:2a53a4c3238c 75 ///Provides a basic authentification feature (Base64 encoded username and password)
lorcansmith 0:2a53a4c3238c 76 void basicAuth(const char* user, const char* password); //Basic Authentification
lorcansmith 0:2a53a4c3238c 77
lorcansmith 0:2a53a4c3238c 78 //High Level setup functions
lorcansmith 0:2a53a4c3238c 79 ///Executes a GET Request (blocking)
lorcansmith 0:2a53a4c3238c 80 /**
lorcansmith 0:2a53a4c3238c 81 Executes a GET request on the URI uri
lorcansmith 0:2a53a4c3238c 82 @param uri : URI on which to execute the request
lorcansmith 0:2a53a4c3238c 83 @param pDataIn : pointer to an HTTPData instance that will collect the data returned by the request, can be NULL
lorcansmith 0:2a53a4c3238c 84 Blocks until completion
lorcansmith 0:2a53a4c3238c 85 */
lorcansmith 0:2a53a4c3238c 86 HTTPResult get(const char* uri, HTTPData* pDataIn); //Blocking
lorcansmith 0:2a53a4c3238c 87
lorcansmith 0:2a53a4c3238c 88 ///Executes a GET Request (non blocking)
lorcansmith 0:2a53a4c3238c 89 /**
lorcansmith 0:2a53a4c3238c 90 Executes a GET request on the URI uri
lorcansmith 0:2a53a4c3238c 91 @param uri : URI on which to execute the request
lorcansmith 0:2a53a4c3238c 92 @param pDataIn : pointer to an HTTPData instance that will collect the data returned by the request, can be NULL
lorcansmith 0:2a53a4c3238c 93 @param pMethod : callback function
lorcansmith 0:2a53a4c3238c 94 The function returns immediately and calls the callback on completion or error
lorcansmith 0:2a53a4c3238c 95 */
lorcansmith 0:2a53a4c3238c 96 HTTPResult get(const char* uri, HTTPData* pDataIn, void (*pMethod)(HTTPResult)); //Non blocking
lorcansmith 0:2a53a4c3238c 97
lorcansmith 0:2a53a4c3238c 98 ///Executes a GET Request (non blocking)
lorcansmith 0:2a53a4c3238c 99 /**
lorcansmith 0:2a53a4c3238c 100 Executes a GET request on the URI uri
lorcansmith 0:2a53a4c3238c 101 @param uri : URI on which to execute the request
lorcansmith 0:2a53a4c3238c 102 @param pDataIn : pointer to an HTTPData instance that will collect the data returned by the request, can be NULL
lorcansmith 0:2a53a4c3238c 103 @param pItem : instance of class on which to execute the callback method
lorcansmith 0:2a53a4c3238c 104 @param pMethod : callback method
lorcansmith 0:2a53a4c3238c 105 The function returns immediately and calls the callback on completion or error
lorcansmith 0:2a53a4c3238c 106 */
lorcansmith 0:2a53a4c3238c 107 template<class T>
lorcansmith 0:2a53a4c3238c 108 HTTPResult get(const char* uri, HTTPData* pDataIn, T* pItem, void (T::*pMethod)(HTTPResult)) //Non blocking
lorcansmith 0:2a53a4c3238c 109 {
lorcansmith 0:2a53a4c3238c 110 setOnResult(pItem, pMethod);
lorcansmith 0:2a53a4c3238c 111 doGet(uri, pDataIn);
lorcansmith 0:2a53a4c3238c 112 return HTTP_PROCESSING;
lorcansmith 0:2a53a4c3238c 113 }
lorcansmith 0:2a53a4c3238c 114
lorcansmith 0:2a53a4c3238c 115 ///Executes a POST Request (blocking)
lorcansmith 0:2a53a4c3238c 116 /**
lorcansmith 0:2a53a4c3238c 117 Executes a POST request on the URI uri
lorcansmith 0:2a53a4c3238c 118 @param uri : URI on which to execute the request
lorcansmith 0:2a53a4c3238c 119 @param dataOut : a HTTPData instance that contains the data that will be posted
lorcansmith 0:2a53a4c3238c 120 @param pDataIn : pointer to an HTTPData instance that will collect the data returned by the request, can be NULL
lorcansmith 0:2a53a4c3238c 121 Blocks until completion
lorcansmith 0:2a53a4c3238c 122 */
lorcansmith 0:2a53a4c3238c 123 HTTPResult post(const char* uri, const HTTPData& dataOut, HTTPData* pDataIn); //Blocking
lorcansmith 0:2a53a4c3238c 124
lorcansmith 0:2a53a4c3238c 125 ///Executes a POST Request (non blocking)
lorcansmith 0:2a53a4c3238c 126 /**
lorcansmith 0:2a53a4c3238c 127 Executes a POST request on the URI uri
lorcansmith 0:2a53a4c3238c 128 @param uri : URI on which to execute the request
lorcansmith 0:2a53a4c3238c 129 @param dataOut : a HTTPData instance that contains the data that will be posted
lorcansmith 0:2a53a4c3238c 130 @param pDataIn : pointer to an HTTPData instance that will collect the data returned by the request, can be NULL
lorcansmith 0:2a53a4c3238c 131 @param pMethod : callback function
lorcansmith 0:2a53a4c3238c 132 The function returns immediately and calls the callback on completion or error
lorcansmith 0:2a53a4c3238c 133 */
lorcansmith 0:2a53a4c3238c 134 HTTPResult post(const char* uri, const HTTPData& dataOut, HTTPData* pDataIn, void (*pMethod)(HTTPResult)); //Non blocking
lorcansmith 0:2a53a4c3238c 135
lorcansmith 0:2a53a4c3238c 136 ///Executes a POST Request (non blocking)
lorcansmith 0:2a53a4c3238c 137 /**
lorcansmith 0:2a53a4c3238c 138 Executes a POST request on the URI uri
lorcansmith 0:2a53a4c3238c 139 @param uri : URI on which to execute the request
lorcansmith 0:2a53a4c3238c 140 @param dataOut : a HTTPData instance that contains the data that will be posted
lorcansmith 0:2a53a4c3238c 141 @param pDataIn : pointer to an HTTPData instance that will collect the data returned by the request, can be NULL
lorcansmith 0:2a53a4c3238c 142 @param pItem : instance of class on which to execute the callback method
lorcansmith 0:2a53a4c3238c 143 @param pMethod : callback method
lorcansmith 0:2a53a4c3238c 144 The function returns immediately and calls the callback on completion or error
lorcansmith 0:2a53a4c3238c 145 */
lorcansmith 0:2a53a4c3238c 146 template<class T>
lorcansmith 0:2a53a4c3238c 147 HTTPResult post(const char* uri, const HTTPData& dataOut, HTTPData* pDataIn, T* pItem, void (T::*pMethod)(HTTPResult)) //Non blocking
lorcansmith 0:2a53a4c3238c 148 {
lorcansmith 0:2a53a4c3238c 149 setOnResult(pItem, pMethod);
lorcansmith 0:2a53a4c3238c 150 doPost(uri, dataOut, pDataIn);
lorcansmith 0:2a53a4c3238c 151 return HTTP_PROCESSING;
lorcansmith 0:2a53a4c3238c 152 }
lorcansmith 0:2a53a4c3238c 153
lorcansmith 0:2a53a4c3238c 154 ///Executes a GET Request (non blocking)
lorcansmith 0:2a53a4c3238c 155 /**
lorcansmith 0:2a53a4c3238c 156 Executes a GET request on the URI uri
lorcansmith 0:2a53a4c3238c 157 @param uri : URI on which to execute the request
lorcansmith 0:2a53a4c3238c 158 @param pDataIn : pointer to an HTTPData instance that will collect the data returned by the request, can be NULL
lorcansmith 0:2a53a4c3238c 159 The function returns immediately and calls the previously set callback on completion or error
lorcansmith 0:2a53a4c3238c 160 */
lorcansmith 0:2a53a4c3238c 161 void doGet(const char* uri, HTTPData* pDataIn);
lorcansmith 0:2a53a4c3238c 162
lorcansmith 0:2a53a4c3238c 163 ///Executes a POST Request (non blocking)
lorcansmith 0:2a53a4c3238c 164 /**
lorcansmith 0:2a53a4c3238c 165 Executes a POST request on the URI uri
lorcansmith 0:2a53a4c3238c 166 @param uri : URI on which to execute the request
lorcansmith 0:2a53a4c3238c 167 @param dataOut : a HTTPData instance that contains the data that will be posted
lorcansmith 0:2a53a4c3238c 168 @param pDataIn : pointer to an HTTPData instance that will collect the data returned by the request, can be NULL
lorcansmith 0:2a53a4c3238c 169 @param pMethod : callback function
lorcansmith 0:2a53a4c3238c 170 The function returns immediately and calls the previously set callback on completion or error
lorcansmith 0:2a53a4c3238c 171 */
lorcansmith 0:2a53a4c3238c 172 void doPost(const char* uri, const HTTPData& dataOut, HTTPData* pDataIn);
lorcansmith 0:2a53a4c3238c 173
lorcansmith 0:2a53a4c3238c 174 ///Setups the result callback
lorcansmith 0:2a53a4c3238c 175 /**
lorcansmith 0:2a53a4c3238c 176 @param pMethod : callback function
lorcansmith 0:2a53a4c3238c 177 */
lorcansmith 0:2a53a4c3238c 178 void setOnResult( void (*pMethod)(HTTPResult) );
lorcansmith 0:2a53a4c3238c 179
lorcansmith 0:2a53a4c3238c 180 ///Setups the result callback
lorcansmith 0:2a53a4c3238c 181 /**
lorcansmith 0:2a53a4c3238c 182 @param pItem : instance of class on which to execute the callback method
lorcansmith 0:2a53a4c3238c 183 @param pMethod : callback method
lorcansmith 0:2a53a4c3238c 184 */
lorcansmith 0:2a53a4c3238c 185 class CDummy;
lorcansmith 0:2a53a4c3238c 186 template<class T>
lorcansmith 0:2a53a4c3238c 187 void setOnResult( T* pItem, void (T::*pMethod)(HTTPResult) )
lorcansmith 0:2a53a4c3238c 188 {
lorcansmith 0:2a53a4c3238c 189 m_pCb = NULL;
lorcansmith 0:2a53a4c3238c 190 m_pCbItem = (CDummy*) pItem;
lorcansmith 0:2a53a4c3238c 191 m_pCbMeth = (void (CDummy::*)(HTTPResult)) pMethod;
lorcansmith 0:2a53a4c3238c 192 }
lorcansmith 0:2a53a4c3238c 193
lorcansmith 0:2a53a4c3238c 194 ///Setups timeout
lorcansmith 0:2a53a4c3238c 195 /**
lorcansmith 0:2a53a4c3238c 196 @param ms : time of connection inactivity in ms after which the request should timeout
lorcansmith 0:2a53a4c3238c 197 */
lorcansmith 0:2a53a4c3238c 198 void setTimeout(int ms);
lorcansmith 0:2a53a4c3238c 199
lorcansmith 0:2a53a4c3238c 200 virtual void poll(); //Called by NetServices
lorcansmith 0:2a53a4c3238c 201
lorcansmith 0:2a53a4c3238c 202 ///Gets last request's HTTP response code
lorcansmith 0:2a53a4c3238c 203 /**
lorcansmith 0:2a53a4c3238c 204 @return The HTTP response code of the last request
lorcansmith 0:2a53a4c3238c 205 */
lorcansmith 0:2a53a4c3238c 206 int getHTTPResponseCode();
lorcansmith 0:2a53a4c3238c 207
lorcansmith 0:2a53a4c3238c 208 ///Sets a specific request header
lorcansmith 0:2a53a4c3238c 209 void setRequestHeader(const string& header, const string& value);
lorcansmith 0:2a53a4c3238c 210
lorcansmith 0:2a53a4c3238c 211 ///Gets a response header
lorcansmith 0:2a53a4c3238c 212 string& getResponseHeader(const string& header);
lorcansmith 0:2a53a4c3238c 213
lorcansmith 0:2a53a4c3238c 214 ///Clears request headers
lorcansmith 0:2a53a4c3238c 215 void resetRequestHeaders();
lorcansmith 0:2a53a4c3238c 216
lorcansmith 0:2a53a4c3238c 217 protected:
lorcansmith 0:2a53a4c3238c 218 void resetTimeout();
lorcansmith 0:2a53a4c3238c 219
lorcansmith 0:2a53a4c3238c 220 void init();
lorcansmith 0:2a53a4c3238c 221 void close();
lorcansmith 0:2a53a4c3238c 222
lorcansmith 0:2a53a4c3238c 223 void setup(const char* uri, HTTPData* pDataOut, HTTPData* pDataIn); //Setup request, make DNS Req if necessary
lorcansmith 0:2a53a4c3238c 224 void connect(); //Start Connection
lorcansmith 0:2a53a4c3238c 225
lorcansmith 0:2a53a4c3238c 226 int tryRead(); //Read data and try to feed output
lorcansmith 0:2a53a4c3238c 227 void readData(); //Data has been read
lorcansmith 0:2a53a4c3238c 228 void writeData(); //Data has been written & buf is free
lorcansmith 0:2a53a4c3238c 229
lorcansmith 0:2a53a4c3238c 230 void onTCPSocketEvent(TCPSocketEvent e);
lorcansmith 0:2a53a4c3238c 231 void onDNSReply(DNSReply r);
lorcansmith 0:2a53a4c3238c 232 void onResult(HTTPResult r); //Called when exchange completed or on failure
lorcansmith 0:2a53a4c3238c 233 void onTimeout(); //Connection has timed out
lorcansmith 0:2a53a4c3238c 234
lorcansmith 0:2a53a4c3238c 235 private:
lorcansmith 0:2a53a4c3238c 236 HTTPResult blockingProcess(); //Called in blocking mode, calls Net::poll() until return code is available
lorcansmith 0:2a53a4c3238c 237
lorcansmith 0:2a53a4c3238c 238 bool readHeaders(); //Called first when receiving data
lorcansmith 0:2a53a4c3238c 239 bool writeHeaders(); //Called to create req
lorcansmith 0:2a53a4c3238c 240 int readLine(char* str, int maxLen, bool* pIncomplete = NULL);
lorcansmith 0:2a53a4c3238c 241
lorcansmith 0:2a53a4c3238c 242 enum HTTP_METH
lorcansmith 0:2a53a4c3238c 243 {
lorcansmith 0:2a53a4c3238c 244 HTTP_GET,
lorcansmith 0:2a53a4c3238c 245 HTTP_POST,
lorcansmith 0:2a53a4c3238c 246 HTTP_HEAD
lorcansmith 0:2a53a4c3238c 247 };
lorcansmith 0:2a53a4c3238c 248
lorcansmith 0:2a53a4c3238c 249 HTTP_METH m_meth;
lorcansmith 0:2a53a4c3238c 250
lorcansmith 0:2a53a4c3238c 251 CDummy* m_pCbItem;
lorcansmith 0:2a53a4c3238c 252 void (CDummy::*m_pCbMeth)(HTTPResult);
lorcansmith 0:2a53a4c3238c 253
lorcansmith 0:2a53a4c3238c 254 void (*m_pCb)(HTTPResult);
lorcansmith 0:2a53a4c3238c 255
lorcansmith 0:2a53a4c3238c 256 TCPSocket* m_pTCPSocket;
lorcansmith 0:2a53a4c3238c 257 map<string, string> m_reqHeaders;
lorcansmith 0:2a53a4c3238c 258 map<string, string> m_respHeaders;
lorcansmith 0:2a53a4c3238c 259
lorcansmith 0:2a53a4c3238c 260 Timer m_watchdog;
lorcansmith 0:2a53a4c3238c 261 int m_timeout;
lorcansmith 0:2a53a4c3238c 262
lorcansmith 0:2a53a4c3238c 263 DNSRequest* m_pDnsReq;
lorcansmith 0:2a53a4c3238c 264
lorcansmith 0:2a53a4c3238c 265 Host m_server;
lorcansmith 0:2a53a4c3238c 266 string m_path;
lorcansmith 0:2a53a4c3238c 267
lorcansmith 0:2a53a4c3238c 268 bool m_closed;
lorcansmith 0:2a53a4c3238c 269
lorcansmith 0:2a53a4c3238c 270 enum HTTPStep
lorcansmith 0:2a53a4c3238c 271 {
lorcansmith 0:2a53a4c3238c 272 // HTTP_INIT,
lorcansmith 0:2a53a4c3238c 273 HTTP_WRITE_HEADERS,
lorcansmith 0:2a53a4c3238c 274 HTTP_WRITE_DATA,
lorcansmith 0:2a53a4c3238c 275 HTTP_READ_HEADERS,
lorcansmith 0:2a53a4c3238c 276 HTTP_READ_DATA,
lorcansmith 0:2a53a4c3238c 277 HTTP_READ_DATA_INCOMPLETE,
lorcansmith 0:2a53a4c3238c 278 HTTP_DONE,
lorcansmith 0:2a53a4c3238c 279 HTTP_CLOSED
lorcansmith 0:2a53a4c3238c 280 };
lorcansmith 0:2a53a4c3238c 281
lorcansmith 0:2a53a4c3238c 282 HTTPStep m_state;
lorcansmith 0:2a53a4c3238c 283
lorcansmith 0:2a53a4c3238c 284 HTTPData* m_pDataOut;
lorcansmith 0:2a53a4c3238c 285 HTTPData* m_pDataIn;
lorcansmith 0:2a53a4c3238c 286
lorcansmith 0:2a53a4c3238c 287 bool m_dataChunked; //Data is encoded as chunks
lorcansmith 0:2a53a4c3238c 288 int m_dataPos; //Position in data
lorcansmith 0:2a53a4c3238c 289 int m_dataLen; //Data length
lorcansmith 0:2a53a4c3238c 290 char* m_buf;
lorcansmith 0:2a53a4c3238c 291 char* m_pBufRemaining; //Remaining
lorcansmith 0:2a53a4c3238c 292 int m_bufRemainingLen; //Data length in m_pBufRemaining
lorcansmith 0:2a53a4c3238c 293
lorcansmith 0:2a53a4c3238c 294 int m_httpResponseCode;
lorcansmith 0:2a53a4c3238c 295
lorcansmith 0:2a53a4c3238c 296 HTTPResult m_blockingResult; //Result if blocking mode
lorcansmith 0:2a53a4c3238c 297
lorcansmith 0:2a53a4c3238c 298 };
lorcansmith 0:2a53a4c3238c 299
lorcansmith 0:2a53a4c3238c 300 //Including data containers here for more convenience
lorcansmith 0:2a53a4c3238c 301 #include "data/HTTPFile.h"
lorcansmith 0:2a53a4c3238c 302 #include "data/HTTPStream.h"
lorcansmith 0:2a53a4c3238c 303 #include "data/HTTPText.h"
lorcansmith 0:2a53a4c3238c 304 #include "data/HTTPMap.h"
lorcansmith 0:2a53a4c3238c 305
lorcansmith 0:2a53a4c3238c 306 #endif