|
| HttpRequestLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
|
| HttpRequestLayer (HttpMethod method, std::string uri, HttpVersion version) |
|
| HttpRequestLayer (const HttpRequestLayer &other) |
|
HttpRequestLayer & | operator= (const HttpRequestLayer &other) |
|
HttpRequestFirstLine * | getFirstLine () |
|
std::string | getUrl () |
|
std::string | toString () |
|
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 () |
|
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 () |
|
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) |
|
Represents an HTTP request header and inherits all basic functionality of HttpMessage and TextBasedProtocolMessage. The functionality that is added for this class is the HTTP first line concept. An HTTP request has the following first line: GET /bla/blabla.asp HTTP/1.1 Since it's not an "ordinary" HTTP field, it requires a special treatment and gets a class of it's own: HttpRequestFirstLine. Unlike most L2-4 protocols, an HTTP request header can spread over more than 1 packet. PcapPlusPlus currently doesn't support a header that is spread over more than 1 packet so in such cases: 1) only the first packet will be parsed as HttpRequestLayer (the other packets won't be recognized as HttpRequestLayer) and 2) the HTTP header for the first packet won't be complete (as it continues in the following packets), this why PcapPlusPlus can indicate that HTTP request header is complete or not(doesn't end with "\r\n\r\n" or "\n\n") using HttpMessage::isHeaderComplete()