Preliminary main mbed library for nexpaq development

Committer:
nexpaq
Date:
Fri Nov 04 20:54:50 2016 +0000
Revision:
1:d96dbedaebdb
Parent:
0:6c56fb4bc5f0
Removed extra directories for other platforms

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nexpaq 0:6c56fb4bc5f0 1 #ifndef HTTPHEADER_H
nexpaq 0:6c56fb4bc5f0 2 #define HTTPHEADER_H
nexpaq 0:6c56fb4bc5f0 3
nexpaq 0:6c56fb4bc5f0 4 #include <string>
nexpaq 0:6c56fb4bc5f0 5 #include <map>
nexpaq 0:6c56fb4bc5f0 6
nexpaq 0:6c56fb4bc5f0 7 enum HTTPStatus { HTTP_OK, HTTP_ERROR };
nexpaq 0:6c56fb4bc5f0 8
nexpaq 0:6c56fb4bc5f0 9 class HTTPSClient;
nexpaq 0:6c56fb4bc5f0 10
nexpaq 0:6c56fb4bc5f0 11 class HTTPHeader
nexpaq 0:6c56fb4bc5f0 12 {
nexpaq 0:6c56fb4bc5f0 13 friend class HTTPSClient;
nexpaq 0:6c56fb4bc5f0 14
nexpaq 0:6c56fb4bc5f0 15 public :
nexpaq 0:6c56fb4bc5f0 16
nexpaq 0:6c56fb4bc5f0 17 HTTPHeader();
nexpaq 0:6c56fb4bc5f0 18
nexpaq 0:6c56fb4bc5f0 19 std::string getField(const std::string& name);
nexpaq 0:6c56fb4bc5f0 20 int getBodyLength();
nexpaq 0:6c56fb4bc5f0 21
nexpaq 0:6c56fb4bc5f0 22 private :
nexpaq 0:6c56fb4bc5f0 23
nexpaq 0:6c56fb4bc5f0 24 HTTPStatus _status;
nexpaq 0:6c56fb4bc5f0 25 std::map<std::string, std::string> _fields;
nexpaq 0:6c56fb4bc5f0 26 };
nexpaq 0:6c56fb4bc5f0 27
nexpaq 0:6c56fb4bc5f0 28
nexpaq 0:6c56fb4bc5f0 29 #endif