mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
API CHANGE: response status is now set on processResponseHeaders
That change was needed to move the variable attribution to earliest as possible. We also have a new field for HTTP_PROTOCOL version used on the response.
This commit is contained in:
@@ -131,7 +131,7 @@ class Transaction {
|
||||
int appendRequestBody(const unsigned char *body, size_t size);
|
||||
int requestBodyFromFile(const char *path);
|
||||
|
||||
int processResponseHeaders();
|
||||
int processResponseHeaders(int code, const std::string& proto);
|
||||
int addResponseHeader(const std::string& key, const std::string& value);
|
||||
int addResponseHeader(const unsigned char *key, const unsigned char *value);
|
||||
int addResponseHeader(const unsigned char *key, size_t len_key,
|
||||
@@ -140,7 +140,7 @@ class Transaction {
|
||||
int processResponseBody();
|
||||
int appendResponseBody(const unsigned char *body, size_t size);
|
||||
|
||||
int processLogging(int status_code);
|
||||
int processLogging();
|
||||
|
||||
bool intervention(ModSecurityIntervention *it);
|
||||
|
||||
@@ -392,7 +392,8 @@ int msc_append_request_body(Transaction *transaction,
|
||||
int msc_request_body_from_file(Transaction *transaction, const char *path);
|
||||
|
||||
/** @ingroup ModSecurity_C_API */
|
||||
int msc_process_response_headers(Transaction *transaction);
|
||||
int msc_process_response_headers(Transaction *transaction, int code,
|
||||
const char* protocol);
|
||||
|
||||
/** @ingroup ModSecurity_C_API */
|
||||
int msc_add_response_header(Transaction *transaction,
|
||||
@@ -427,7 +428,7 @@ void msc_transaction_cleanup(Transaction *transaction);
|
||||
int msc_intervention(Transaction *transaction, ModSecurityIntervention *it);
|
||||
|
||||
/** @ingroup ModSecurity_C_API */
|
||||
int msc_process_logging(Transaction *transaction, int code);
|
||||
int msc_process_logging(Transaction *transaction);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user