diff options
| author | Lu <[email protected]> | 2018-07-13 19:58:21 +0800 |
|---|---|---|
| committer | Lu <[email protected]> | 2018-07-13 19:58:21 +0800 |
| commit | 029c1140317f76229690b8aa89e10b78f9d6a19d (patch) | |
| tree | 38222f2a33d81a640db94b20cfb9ce1e5b628078 /src/httpscan.h | |
| parent | 660e3fbe82371b090a57f6ae1b30ebd5fb98947e (diff) | |
实现对Chunk类型的应答内容的解析 #2
Diffstat (limited to 'src/httpscan.h')
| -rw-r--r-- | src/httpscan.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/httpscan.h b/src/httpscan.h index 6b3fd1f..e3891ce 100644 --- a/src/httpscan.h +++ b/src/httpscan.h @@ -68,6 +68,16 @@ public: void ScanResponseBody(HttpSession *http_session_ctx); private: + enum class scan_result_t + { + kScanResultNotHit = 0, + kScanResultHit = 1, + kScanResultError = -1 + }; + + scan_result_t scan_headers(const HttpHeaders & c_headers, int table_id); + scan_result_t scan_body(const char * data, size_t len, int table_id); + void hit_config_and_do_action(HttpSession *session); void hit_scan_error(); |
