CoreUtils/IMFMessage.h
Brad Arant 41852d019c Sync.
2020-11-16 17:00:28 -08:00

37 lines
658 B
C++

#ifndef __IMFMessage_h__
#define __IMFMessage_h__
#include "PString.h"
#include "IMFHeader.h"
#include "IMFRequest.h"
#include "IMFBody.h"
namespace coreutils {
class IMFMessage {
public:
IMFMessage();
IMFMessage(PString &in);
bool parse(PString &in);
void output(std::stringstream &out);
void addHeader(std::string key, std::string value);
std::string getHeader(std::string key, bool valueOnly = true);
std::string getHeaderKeyPairValue(std::string headerKey, std::string key);
IMFBody *getBody();
// protected:
std::vector<IMFHeader> headers;
IMFBody *body;
};
}
#endif