PcapPlusPlus
|
#include <HttpLayer.h>
Public Member Functions | |
virtual HeaderField * | addField (const std::string &fieldName, const std::string &fieldValue) |
virtual HeaderField * | addField (const HeaderField &newField) |
virtual HeaderField * | insertField (HeaderField *prevField, const std::string &fieldName, const std::string &fieldValue) |
virtual HeaderField * | insertField (HeaderField *prevField, const HeaderField &newField) |
OsiModelLayer | getOsiModelLayer () |
Public Member Functions inherited from pcpp::TextBasedProtocolMessage | |
HeaderField * | getFieldByName (std::string fieldName, int index=0) |
HeaderField * | getFirstField () |
HeaderField * | getNextField (HeaderField *prevField) |
int | getFieldCount () |
HeaderField * | addEndOfHeader () |
virtual HeaderField * | insertField (std::string prevFieldName, const std::string &fieldName, const std::string &fieldValue) |
bool | removeField (HeaderField *fieldToRemove) |
bool | removeField (std::string fieldName, int index=0) |
bool | isHeaderComplete () |
virtual void | parseNextLayer () |
size_t | getHeaderLen () |
virtual void | computeCalculateFields () |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () |
Layer * | getPrevLayer () |
ProtocolType | getProtocol () |
uint8_t * | getData () |
size_t | getDataLen () |
uint8_t * | getLayerPayload () |
size_t | getLayerPayloadSize () |
bool | isAllocatedToPacket () |
void | copyData (uint8_t *toArr) |
uint8_t * | getDataPtr (size_t offset=0) |
virtual std::string | toString ()=0 |
Static Public Member Functions | |
static const std::map< uint16_t, bool > * | getHTTPPortMap () |
Represents a general HTTP message. It's an abstract class and cannot be instantiated. It's inherited by HttpRequestLayer and HttpResponseLayer
|
virtual |
Add a new header field to this message. This field will be added last (before the end-of-header field)
[in] | fieldName | The field name |
[in] | fieldValue | The field value |
Reimplemented from pcpp::TextBasedProtocolMessage.
|
virtual |
Add a new header field to this message. This field will be added last (before the end-of-header field)
[in] | newField | The header field to add |
Reimplemented from pcpp::TextBasedProtocolMessage.
|
static |
|
inlinevirtual |
Implements pcpp::Layer.
|
virtual |
Insert a new field after an existing field
[in] | prevField | A pointer to the existing field. If it's NULL the new field will be added as first field |
[in] | fieldName | The field name |
[in] | fieldValue | The field value |
Reimplemented from pcpp::TextBasedProtocolMessage.
|
virtual |
Insert a new field after an existing field
[in] | prevField | A pointer to the existing field |
[in] | newField | The header field to add |
Reimplemented from pcpp::TextBasedProtocolMessage.