dhgdh

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by joey shelton

mbd_os/libraries/net/https/HTTPHeader.h

Committer:
cyberjoey
Date:
2016-10-22
Revision:
9:6bb35cef007d
Parent:
1:55a6170b404f

File content as of revision 9:6bb35cef007d:

#ifndef HTTPHEADER_H
#define HTTPHEADER_H

#include <string>
#include <map>

enum HTTPStatus { HTTP_OK, HTTP_ERROR };

class HTTPSClient;

class HTTPHeader
{
    friend class HTTPSClient;

    public :
    
        HTTPHeader();
        
        std::string getField(const std::string& name);  
        int getBodyLength();
        
    private :
    
        HTTPStatus _status;
        std::map<std::string, std::string> _fields;
};


#endif