Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
features/unsupported/net/https/HTTPHeader.h
- Committer:
 - calmantara186
 - Date:
 - 2018-02-22
 - Revision:
 - 1:2b6e8130a0ac
 - Parent:
 - 0:f269e3021894
 
File content as of revision 1:2b6e8130a0ac:
#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