mbed-os

Fork of mbed-os by erkin yucel

Committer:
elessair
Date:
Sun Oct 23 15:10:02 2016 +0000
Revision:
0:f269e3021894
Initial commit

Who changed what in which revision?

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