Tag: go

  • RoundTrip Logging Within Go’s http.Client

    Ok so, let’s say you have an HTTP client where you need to get information from the request and response calls for logging or debugging reasons. One way to do this is to create a custom RoundTripper to handle said logging. What is a RoundTripper? A RoundTripper is an interface that implements the RoundTrip function…