nkjnm

Dependencies:   MAX44000 nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Committer:
nitsshukla
Date:
Fri Nov 04 12:06:04 2016 +0000
Revision:
7:3a65ef12ba31
Parent:
1:55a6170b404f
kghj;

Who changed what in which revision?

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