diff options
| author | Jeff Carr <[email protected]> | 2025-09-08 08:13:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-08 08:13:40 -0500 |
| commit | 09c36a87b30a6ddf97e3b5a7bd77d36834441aa5 (patch) | |
| tree | c7b2f5f0e1ff4de8a09f83760028f88b10927309 /reqToPB.go | |
| parent | f67d6184139374f168037523f46623e2c32547fc (diff) | |
track client & server payload sizesv0.0.6
Diffstat (limited to 'reqToPB.go')
| -rw-r--r-- | reqToPB.go | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -58,14 +58,15 @@ func ReqToPB(r *http.Request) (*HttpRequest, error) { // log.Info("TRYING TO MARSHAL bytes:", len(msg), err) pb := &HttpRequest{ - Method: r.Method, - URL: r.URL.String(), - Proto: r.Proto, - Headers: headers, - IP: getClientIP(r), - Host: r.Host, - Body: msg, - Hostname: r.Header.Get("hostname"), + Method: r.Method, + URL: r.URL.String(), + Proto: r.Proto, + Headers: headers, + IP: getClientIP(r), + Host: r.Host, + ClientData: msg, + ClientDataLen: int64(len(msg)), + Hostname: r.Header.Get("hostname"), } pb.Route = cleanURL(r.URL.Path) |
