#include <htp.h>
Current parser configuration structure.
The connection structure associated with this parser.
int64_t htp_connp_t::in_body_data_left |
Holds the remaining request body length that we expect to read. This field will be available only when the length of a request body is known in advance, i.e. when request headers contain a Content-Length header.
size_t htp_connp_t::in_chunk_count |
How many data chunks does the inbound connection stream consist of?
The index of the first chunk used in the current request.
Holds the amount of data that needs to be read from the current data chunk. Only used with chunked request bodies.
int64_t htp_connp_t::in_content_length |
The request body length declared in a valid request headers. The key here is "valid". This field will not be populated if a request contains both a Transfer-Encoding header and a Content-Length header.
unsigned char* htp_connp_t::in_current_data |
Pointer to the current request data chunk.
int64_t htp_connp_t::in_current_len |
The length of the current request data chunk.
int64_t htp_connp_t::in_current_offset |
The offset of the next byte in the request data chunk to consume.
The request header line currently being processed.
How many lines are there in the current request header?
The index, in the structure holding all request header lines, of the line with which the current header begins. The header lines are kept in the transaction structure.
unsigned char* htp_connp_t::in_line |
Pointer to the request line buffer.
size_t htp_connp_t::in_line_len |
Length of the current request line.
size_t htp_connp_t::in_line_size |
Size of the request line buffer.
The value of the request byte currently being processed.
int(* htp_connp_t::in_state)(htp_connp_t *) |
Current request parser state.
unsigned int htp_connp_t::in_status |
Parser inbound status. Starts as HTP_OK, but may turn into HTP_ERROR.
int64_t htp_connp_t::in_stream_offset |
The offset, in the entire connection stream, of the next request byte.
The time when the last request data chunk was received.
Ongoing inbound transaction.
Is the configuration structure only used with this connection parser? If it is, then it can be changed as parsing goes on, and destroyed along with the parser in the end.
On parser failure, this field will contain the error information. Do note, however, that the value in this field will only be valid immediately after an error condition, but it is not guaranteed to remain valid if the parser is invoked again.
int64_t htp_connp_t::out_body_data_left |
The remaining length of the current response body, if known.
Holds the amount of data that needs to be read from the current response data chunk. Only used with chunked response bodies.
int64_t htp_connp_t::out_content_length |
The length of the current response body as presented in the Content-Length response header.
unsigned char* htp_connp_t::out_current_data |
Pointer to the current response data chunk.
int64_t htp_connp_t::out_current_len |
The length of the current response data chunk.
int64_t htp_connp_t::out_current_offset |
The offset of the next byte in the response data chunk to consume.
unsigned int htp_connp_t::out_data_other_at_tx_end |
Response decompressor used to decompress response body data.
The response header line currently being processed.
How many lines are there in the current response header?
The index, in the structure holding all response header lines, of the line with which the current header begins. The header lines are kept in the transaction structure.
unsigned char* htp_connp_t::out_line |
Pointer to the response line buffer.
size_t htp_connp_t::out_line_len |
Length of the current response line.
size_t htp_connp_t::out_line_size |
Size of the response line buffer.
The value of the response byte currently being processed.
Response counter, incremented with every new response. This field is used to match responses to requests. The expectation is that for every response there will already be a transaction (request) waiting.
int(* htp_connp_t::out_state)(htp_connp_t *) |
Current response parser state.
unsigned int htp_connp_t::out_status |
Parser output status. Starts as HTP_OK, but may turn into HTP_ERROR.
int64_t htp_connp_t::out_stream_offset |
The offset, in the entire connection stream, of the next response byte.
The time when the last response data chunk was received.
Ongoing outbound transaction
void* htp_connp_t::user_data |
Opaque user data associated with this parser.