Skip to content

Conversation

@wenchy
Copy link
Owner

@wenchy wenchy commented Aug 25, 2023

Dump:

Request(dump): 
        POST /?param1=value1&param2=value2 HTTP/1.1
        Host: 127.0.0.1:64197
        User-Agent: Go-http-client/1.1
        Content-Length: 23
        Content-Type: application/json
        Header1: value1
        Header2: value2
        Accept-Encoding: gzip

        {"ID":1,"Name":"Hello"}

Response(dump): 
        HTTP/1.1 200 OK
        Content-Length: 28
        Content-Type: text/plain; charset=utf-8
        Date: Fri, 25 Aug 2023 02:33:53 GMT

        {"ID":1,"Name":"echo Hello"}

@wenchy wenchy requested a review from Kybxd August 25, 2023 02:36
@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

Patch coverage: 64.70% and project coverage change: +0.03% 🎉

Comparison is base (c6b1607) 59.07% compared to head (3701367) 59.11%.

❗ Current head 3701367 differs from pull request most recent head 5345498. Consider uploading reports for the commit 5345498 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   59.07%   59.11%   +0.03%     
==========================================
  Files           4        4              
  Lines         347      362      +15     
==========================================
+ Hits          205      214       +9     
- Misses        120      124       +4     
- Partials       22       24       +2     
Files Changed Coverage Δ
request.go 46.85% <50.00%> (-0.42%) ⬇️
options.go 72.26% <100.00%> (+1.21%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@Kybxd Kybxd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Kybxd Kybxd merged commit 4c70274 into master Aug 25, 2023
@wenchy wenchy deleted the dump-req-resp branch June 4, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dump: print HTTP request debug info

2 participants