This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New API to create a tag-stack of formats which can be used to compile and display http logs. Currently the following variables are defined: $ua - the user-agent $path - the request path $rhost - the remote host $meth - the http method $ts - timestamp $proto - HTTP version $status - HTTP status $ref - referrer $host - $vhost Usage: ```C void *log = htp_logutil_new("$rhost $host \"$ua\" [$ts] \"$meth $path"); static void process_request_(evhtp_request_t * req, void * arg) { (void)arg; htp_log_request(log, stderr, req); evhtp_send_reply(req, EVHTP_RES_OK); } ``` See: examples/example_basic.c
- Loading branch information
1 parent
606f3e3
commit a0a8641
Showing
5 changed files
with
391 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef __EVHTP_LOGUTILS_H__ | ||
#define __EVHTP_LOGUTILS_H__ | ||
|
||
EVHTP_EXPORT void * htp_logutil_new(const char * format); | ||
EVHTP_EXPORT void htp_log_request(void * logutil, FILE * fp, evhtp_request_t * request); | ||
|
||
#endif | ||
|
Oops, something went wrong.