PcapPlusPlus
21.05
|
#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 () const |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () const |
ProtocolType | getProtocol () const |
uint8_t * | getData () const |
size_t | getDataLen () const |
uint8_t * | getLayerPayload () const |
size_t | getLayerPayloadSize () const |
bool | isAllocatedToPacket () const |
void | copyData (uint8_t *toArr) const |
uint8_t * | getDataPtr (size_t offset=0) const |
virtual std::string | toString () const =0 |
Static Public Member Functions | |
static bool | isHttpPort (uint16_t port) |
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.
|
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.
|
inlinestatic |
A static method that checks whether the port is considered as HTTP
[in] | port | The port number to be checked |