ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HTTPHeader.h Source File

HTTPHeader.h

00001 #ifndef HTTPHEADER_H
00002 #define HTTPHEADER_H
00003 
00004 #include <string>
00005 #include <map>
00006 
00007 enum HTTPStatus { HTTP_OK, HTTP_ERROR };
00008 
00009 class HTTPSClient;
00010 
00011 class HTTPHeader
00012 {
00013     friend class HTTPSClient;
00014 
00015     public :
00016     
00017         HTTPHeader();
00018         
00019         std::string getField(const std::string& name);  
00020         int getBodyLength();
00021         
00022     private :
00023     
00024         HTTPStatus _status;
00025         std::map<std::string, std::string> _fields;
00026 };
00027 
00028 
00029 #endif