gugod / gugod/Hijk

A request debug mode

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Perl
Stars
30
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Provide a mechanism to produce request traces to a path user specified.
I'm thinking of something similar to 'tcpflow -e http' . It should probably store one request per file, and let file names contain some connection id and a timestamp. Users can know what happens in which order within a connection.

IMHO this should be global and/or local:

Local (log specific requests):

```
use Hijk;
use Hijk::DEBUG trace => "/tmp/hijk_debug/";
Hijk::DEBUG::request({...}); # logged
Hijk::request({...}); # not logged
```

Global (log all requests):

```
use Hijk;
use Hijk::DEBUG trace => "/tmp/hijk_debug/", global => 1;
Hijk::DEBUG::request({...}); # logged
Hijk::request({...}); # logged
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.